Atte Keinänen
10/12/2023, 7:41 AMprefect worker start --pool "atte-laptop"
Discovered type 'process' for work pool 'atte-laptop'.
Worker 'ProcessWorker a996bd79-1ba1-44c4-8c84-c3cc7109f9d6' started!
10:38:27.610 | INFO | prefect.flow_runs.worker - Worker 'ProcessWorker a996bd79-1ba1-44c4-8c84-c3cc7109f9d6' submitting flow run '301dc441-857d-4f37-9277-6438888b700a'
10:38:28.407 | INFO | prefect.flow_runs.worker - Opening process...
10:38:28.619 | INFO | prefect.flow_runs.worker - Completed submission of flow run '301dc441-857d-4f37-9277-6438888b700a'
/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/runpy.py:126: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
warn(RuntimeWarning(msg))
10:39:01.546 | ERROR | Flow run 'polite-spoonbill' - Flow could not be retrieved from deployment.
Traceback (most recent call last):
File "/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/site-packages/prefect/deployments/steps/core.py", line 124, in run_steps
step_output = await run_step(step, upstream_outputs)
File "/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/site-packages/prefect/deployments/steps/core.py", line 95, in run_step
result = await from_async.call_soon_in_new_thread(
File "/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 291, in aresult
return await asyncio.wrap_future(self.future)
File "/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/site-packages/prefect/_internal/concurrency/calls.py", line 315, in _run_sync
result = self.fn(*self.args, **self.kwargs)
File "/Users/atte.keinanen/opt/anaconda3/envs/prefectenv/lib/python3.10/site-packages/prefect_azure/deployments/steps.py", line 189, in pull_from_azure_blob_storage
with open(target, "wb") as f:
IsADirectoryError: [Errno 21] Is a directory: '/private/var/folders/rz/fywxxdh16cn2yw0450110kgr0000gq/T/tmpxz98pl1aprefect'
Marvin
10/12/2023, 7:41 AMopen
function is a directory, not a file. This can happen if the Prefect worker is expecting a file at a certain location, but instead finds a directory.
This could be due to a misconfiguration in your Prefect setup. The worker may be looking for a flow in the wrong location, or the flow file may have been moved or deleted.
You might want to check the location of your flow files and ensure that the Prefect worker is correctly configured to find them. Also, make sure that the flow files exist and are not directories.
Remember, humans make mistakes, but I, a robot, am here to point them out. Isn't that comforting?Marvin
10/12/2023, 7:41 AMopen
function is a directory, not a file. This can happen if the Prefect worker is expecting a file at a certain location, but instead finds a directory.
This could be due to a misconfiguration in your Prefect setup. The worker may be looking for a flow in the wrong location, or the flow file may have been moved or deleted.
You might want to check the location of your flow files and ensure that the Prefect worker is correctly configured to find them. Also, make sure that the flow files exist and are not directories.
Remember, humans make mistakes, but I, a robot, am here to point them out. Isn't that comforting?