Ryan Morshead

05/25/2023, 9:24 PM
I’m getting an error that’s logged when running async flows locally with prefect that complains:
Exception ignored in: <async_generator object add_event_loop_shutdown_callback.<locals>.on_shutdown at 0x7f3d81b374c0>
Traceback (most recent call last):
  File "/home/jon/miniconda3/envs/abraxas-env/lib/python3.10/site-packages/prefect/utilities/", line 308, in on_shutdown
AttributeError: 'NoneType' object has no attribute 'pop'
Which seems related to this issue (which I’ve already commented on). I have no idea how to solve this. It seems like some odd threading/multiprocessing bug where EVENT_LOOP_GC_REFS is not being copied over correctly somehow.
I created a PR that seems to fix this bug:
🙌 1