Result Persistence Doesn't Work With run_deployment
Submitted Async
#17557
Labels
bug
Something isn't working
Bug summary
When I try using result persistence for submitting flows in parallel using
run_deployment
, I cannot get the results back from those deployment using theresult_persistence
andresult_storage
parameters. I only get backcoroutines
without being able to get the results.If I run/submit the same flows to
run_deployment
not in an async fashion, I can get the results back just fine. It is just a function of how the async functionality works in the flow.Minimum Reproducible Example
What I get in the final print statement is
[<coroutine object sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call at 0x11f2cbb40>, <coroutine object sync_compatible.<locals>.coroutine_wrapper.<locals>.ctx_call at 0x128325b40>]
.If I drop the
await asyncio.gather
and just get a list of flow runs, then I get back[0, 1]
as I'd expect.Is there a better way to submit deployments in parallel instead of in series than using
asyncio.gather
? Or is there a way to make it so I can get results back from these deployments in an async manner?Version info
Additional context
I wanted to confirm
prefect-ray
wasn't the main cause here, and I'm pretty sure it isn't. I kept it in the example, but it could be dropped for reproducing the problem most likely.The text was updated successfully, but these errors were encountered: