Skip to content

Commit

Permalink
Parallelism must be at least 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobbieMcKinstry committed Oct 22, 2022
1 parent 59a5c61 commit 36e2f19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdk/python/cmd/pulumi-language-python-exec
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def _set_default_executor(loop, parallelism: Optional[int]):
'''configure this event loop to respect the settings provided.'''
if parallelism is None:
return
parallelism = max(parallelism, 1)
exec = ThreadPoolExecutor(max_workers=parallelism)
loop.set_default_executor(exec)

Expand Down

0 comments on commit 36e2f19

Please sign in to comment.