Harsh Thakare
04/23/2026, 3:16 PMMarvin
04/23/2026, 3:17 PMMarvin
04/23/2026, 3:17 PMMarvin
04/23/2026, 3:18 PMMarvin
04/23/2026, 3:19 PMprefect.yaml
If you can, paste:
<command you ran>
<full stack trace / logs>
If it’s a deployment/runtime issue, also include:
prefect version
and, if applicable:
prefect deployment ls
prefect work-pool ls
Once you paste the error, I can help narrow down the exact cause.Harsh Thakare
04/23/2026, 3:20 PM> $env:PREFECT_API_URL="http://127.0.0.1:4200/api"
> uv run prefect worker start --pool test-missing-block --type processWorker 'ProcessWorker 50173b80-737d-45f4-a480-22f1e4a34e57' started! 204430.525 | INFO | prefect.flow_runs.worker - Worker 'ProcessWorker 50173b80-737d-45f4-a480-22f1e4a34e57' submitting flow run 'e3835fb6-635a-4ca4-827c-ce978065393e' 204439.276 | INFO | prefect.flow_runs.runner - Starting flow run process... 204439.358 | INFO | prefect.flow_runs.worker - Flow run 'iron-griffin' submitted to infrastructure 204444.112 | INFO | Flow run 'iron-griffin' - Downloading flow code from storage at '.' 204444.125 | ERROR | Flow run 'iron-griffin' - Unexpected exception encountered when trying to load flow Traceback (most recent call last): File "<frozen importlib._bootstrap_external>", line 1022, in exec_module File "<frozen importlib._bootstrap_external>", line 1159, in get_code File "<frozen importlib._bootstrap_external>", line 1217, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ASUSVI~1\\AppData\\Local\\Temp\\tmpl5fc28rzprefect\\tmp_issue_20441.py' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\company\prefect\src\prefect\engine.py", line 165, in <module> flow: "Flow[..., Any]" = load_flow(flow_run) ~~~~~~~~~^^^^^^^^^^ File "D:\company\prefect\src\prefect\flow_engine.py", line 233, in load_flow flow = run_coro_as_sync( load_flow_from_flow_run(flow_run, use_placeholder_flow=False) ) File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 207, in run_coro_as_sync return call.result() ~~~~~~~~~~~^^ File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 365, in result return self.future.result(timeout=timeout) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 192, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "C:\Python313\Lib\concurrent\futures\_base.py", line 401, in __get_result raise self._exception File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 441, in _run_async result = await coro ^^^^^^^^^^ File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 188, in coroutine_wrapper return await task ^^^^^^^^^^ File "D:\company\prefect\src\prefect\client\utilities.py", line 69, in wrapper return await func(client, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\flows.py", line 3163, in load_flow_from_flow_run flow = await run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 233, in run_sync_in_worker_thread result = await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call_with_mark, call, abandon_on_cancel=True, limiter=get_thread_limiter() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\to_thread.py", line 63, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 2518, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 1002, in run result = context.run(func, *args) File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 243, in call_with_mark return call() File "D:\company\prefect\src\prefect\flows.py", line 2838, in load_flow_from_entrypoint flow: Flow[P, Any] = import_object(entrypoint) # pyright: ignore[reportRedeclaration] ~~~~~~~~~~~~~^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\utilities\importtools.py", line 153, in import_object module = load_script_as_module(script_path) File "D:\company\prefect\src\prefect\utilities\importtools.py", line 118, in load_script_as_module raise ScriptError(user_exc=exc, path=path) from exc prefect.exceptions.ScriptError: Script at 'tmp_issue_20441.py' encountered an exception: FileNotFoundError(2, 'No such file or directory') 204444.231 | ERROR | prefect.engine - Execution of flow run 'e3835fb6-635a-4ca4-827c-ce978065393e' exited with unexpected exception Traceback (most recent call last): File "<frozen importlib._bootstrap_external>", line 1022, in exec_module File "<frozen importlib._bootstrap_external>", line 1159, in get_code File "<frozen importlib._bootstrap_external>", line 1217, in get_data FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\ASUSVI~1\\AppData\\Local\\Temp\\tmpl5fc28rzprefect\\tmp_issue_20441.py' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "D:\company\prefect\src\prefect\engine.py", line 87, in handle_engine_signals yield File "D:\company\prefect\src\prefect\engine.py", line 165, in <module> flow: "Flow[..., Any]" = load_flow(flow_run) ~~~~~~~~~^^^^^^^^^^ File "D:\company\prefect\src\prefect\flow_engine.py", line 233, in load_flow flow = run_coro_as_sync( load_flow_from_flow_run(flow_run, use_placeholder_flow=False) ) File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 207, in run_coro_as_sync return call.result() ~~~~~~~~~~~^^ File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 365, in result return self.future.result(timeout=timeout) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 192, in result return self.__get_result() ~~~~~~~~~~~~~~~~~^^ File "C:\Python313\Lib\concurrent\futures\_base.py", line 401, in __get_result raise self._exception File "D:\company\prefect\src\prefect\_internal\concurrency\calls.py", line 441, in _run_async result = await coro ^^^^^^^^^^ File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 188, in coroutine_wrapper return await task ^^^^^^^^^^ File "D:\company\prefect\src\prefect\client\utilities.py", line 69, in wrapper return await func(client, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\flows.py", line 3163, in load_flow_from_flow_run flow = await run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<3 lines>... ) ^ File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 233, in run_sync_in_worker_thread result = await anyio.to_thread.run_sync( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call_with_mark, call, abandon_on_cancel=True, limiter=get_thread_limiter() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\to_thread.py", line 63, in run_sync return await get_async_backend().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ func, args, abandon_on_cancel=abandon_on_cancel, limiter=limiter ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 2518, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "D:\company\prefect\.venv\Lib\site-packages\anyio\_backends\_asyncio.py", line 1002, in run result = context.run(func, *args) File "D:\company\prefect\src\prefect\utilities\asyncutils\__init__.py", line 243, in call_with_mark return call() File "D:\company\prefect\src\prefect\flows.py", line 2838, in load_flow_from_entrypoint flow: Flow[P, Any] = import_object(entrypoint) # pyright: ignore[reportRedeclaration] ~~~~~~~~~~~~~^^^^^^^^^^^^ File "D:\company\prefect\src\prefect\utilities\importtools.py", line 153, in import_object module = load_script_as_module(script_path) File "D:\company\prefect\src\prefect\utilities\importtools.py", line 118, in load_script_as_module raise ScriptError(user_exc=exc, path=path) from exc prefect.exceptions.ScriptError: Script at 'tmp_issue_20441.py' encountered an exception: FileNotFoundError(2, 'No such file or directory') 204445.246 | ERROR | prefect.flow_runs.runner - Process for flow run 'iron-griffin' exited with status code: 1; Process exited with a general error. 204445.247 | INFO | prefect.flow_runs.runner - Check the flow run logs for an unhandled exception or assertion error. 204445.378 | INFO | prefect.flow_runs.worker - Reported flow run 'e3835fb6-635a-4ca4-827c-ce978065393e' as crashed: Flow run infrastructure exited with non-zero status code 1. Process exited with a general error. 204445.380 | INFO | prefect.flow_runs.worker - Check the flow run logs for an unhandled exception or assertion error. 204445.548 | INFO | prefect.flow_runs.runner - Loading flow to check for on_crashed hooks 204446.096 | INFO | Flow run 'iron-griffin' - Downloading flow code from storage at '.'