I’m getting an error that’s logged when running as...
# ask-community
r
I’m getting an error that’s logged when running async flows locally with prefect that complains:
Copy code
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/asyncutils.py", 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.
1
I created a PR that seems to fix this bug: https://github.com/PrefectHQ/prefect/pull/9748
🙌 1