9:58:59.969 | INFO | prefect.flow_runs.runner -...
# pacc-oct-16-17-2024
l
095859.969 | INFO | prefect.flow_runs.runner - Process for flow run 'pompous-quoll' exited cleanly. + Exception Group Traceback (most recent call last): | File "C:\Users\ling.poon\OneDrive - Cubic Health\Documents\Visual Studio 2017\pacc-2024-v6\101\weather1-serve.py", line 18, in <module> | fetch_weather.serve(name='hello') | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\prefect\flows.py", line 932, in serve | asyncio.run(runner.start(webserver=webserver)) | File "C:\Python312\Lib\asyncio\runners.py", line 194, in run | return runner.run(main) | ^^^^^^^^^^^^^^^^ | File "C:\Python312\Lib\asyncio\runners.py", line 118, in run | return self._loop.run_until_complete(task) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | File "C:\Python312\Lib\asyncio\base_events.py", line 684, in run_until_complete | return future.result() | ^^^^^^^^^^^^^^^ | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\prefect\runner\runner.py", line 402, in start | async with self as runner: | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\prefect\runner\runner.py", line 1289, in aexit | await self._exit_stack.__aexit__(*exc_info) | File "C:\Python312\Lib\contextlib.py", line 754, in aexit | raise exc_details[1] | File "C:\Python312\Lib\contextlib.py", line 737, in aexit | cb_suppress = await cb(*exc_details) | ^^^^^^^^^^^^^^^^^^^^^^ | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\anyio\_backends\_asyncio.py", line 763, in aexit | raise BaseExceptionGroup( | ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) +-+---------------- 1 ---------------- | Traceback (most recent call last): | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\prefect\utilities\services.py", line 63, in critical_service_loop | await workload() | File "C:\Users\ling.poon\OneDrive - Cubic Health\Desktop\Prefect\Training\prefect_training\Lib\site-packages\prefect\runner\runner.py", line 741, in _check_for_cancelled_flow_runs | raise RuntimeError( | RuntimeError: Runner is not set up. Please make sure you are running this runner as an async context manager. +------------------------------------
👀 1
w
@Ling let me know if upgrading fixes the issue.
l
yup updating fixes it. Thanks !
🎉 1
m
updating fixed it for me too, must be bug with 3.0.9
👍 1