fix: disable threads for Pulumi
This commit is contained in:
parent
311f409385
commit
6a76f37bce
@ -444,7 +444,13 @@ def _provision(cb, stacks):
|
|||||||
"""Utility function to reuse code between tasks"""
|
"""Utility function to reuse code between tasks"""
|
||||||
for step in sort_stacks(cb, stacks):
|
for step in sort_stacks(cb, stacks):
|
||||||
if step:
|
if step:
|
||||||
with ThreadPoolExecutor(max_workers=len(step)) as group:
|
# Pulumi is still not thread safe
|
||||||
|
if _anyPulumi(step):
|
||||||
|
_threads = 1
|
||||||
|
else
|
||||||
|
_threads = len(step)
|
||||||
|
|
||||||
|
with ThreadPoolExecutor(max_workers=_threads)) as group:
|
||||||
futures = []
|
futures = []
|
||||||
for stack in step:
|
for stack in step:
|
||||||
if stack.mode != "pulumi":
|
if stack.mode != "pulumi":
|
||||||
|
Loading…
Reference in New Issue
Block a user