Gabe Villasana
11/10/2023, 8:47 PMasyncio.gather
command, the first subflow executes correctly, though all of the other subflows will error. I believe the problem is compatibility with the marvin
library. there seems to be a problem with the async_utils
. The error message I see consistently is:
Encountered exception during execution:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/marvin/utilities/async_utils.py", line 61, in run_sync
loop = asyncio.get_running_loop()
RuntimeError: no running event loop
Versions:
marvin = "1.5.5"
prefect = "2.14.3"
Has anyone else in the community encountered this problem?Alexander Azzam
11/10/2023, 8:53 PMGabe Villasana
11/10/2023, 9:18 PMserve
method when my workers startup. I invoke flow A
via the run_deployment
command. Flow A
calls subflow B
via await asyncio.gather
. Inside subflow B
, I have a number of tasks which are wrappers around marvin functions. I'm using the ConcurrentTaskRunner
. Happy to share code details over DMs 🙂Alexander Azzam
11/10/2023, 9:20 PMAlexander Azzam
11/10/2023, 9:52 PMGabe Villasana
11/10/2023, 9:56 PMTaylor Curran
11/11/2023, 4:52 PMGabe Villasana
11/13/2023, 1:23 PMGabe Villasana
11/13/2023, 9:28 PMRunning
state. I was using the asyncio.gather
to call the subflows via run_deployment
similar to what you referenced in the first link.
Is there a way I can check based on the results of the asyncio.gather call wehther my subflows failed? If any of them failed, I want the parent flow to fail as wellTaylor Curran
11/13/2023, 9:30 PMTaylor Curran
11/13/2023, 9:30 PMTaylor Curran
11/13/2023, 9:31 PMTaylor Curran
11/13/2023, 9:31 PMGabe Villasana
11/13/2023, 9:32 PMGabe Villasana
11/13/2023, 9:33 PM