Is there a way to use the Pulumi Automation Framew...
# python
g
Is there a way to use the Pulumi Automation Framework with asyncio? Or maybe another way to ask: is there a recommended way to have multiple stack.up's or previews going on in a single program and collect the results of all of them? I'm thinking I might have to resort to threading to accomplish something like this, but was hoping to avoid it.
f
hm you're probably stuck for a bit until this is resolved https://github.com/pulumi/pulumi/issues/7663
g
Ah thanks for that. I did workaround it by pushing all of the pulumi stack ops into an
<http://asyncio.to|asyncio.to>_thread()
call which was sufficient for now. That at least let me run a bunch of concurrent runs in the same program without having to wait for them on the eventloop.