Log:
Discovered worker type 'docker' for work pool 'test_docker'.
Worker 'DockerWorker 196bda7f-91c8-4f2d-aaf4-28af729f8af6' started!
12:45:10.451 | INFO | prefect.flow_runs.worker - Worker 'DockerWorker 196bda7f-91c8-4f2d-aaf4-28af729f8af6' submitting flow run '2ae9462a-c308-4b92-a6c7-244c25905f4b'
12:45:12.816 | INFO | prefect.worker.docker.dockerworker 196bda7f-91c8-4f2d-aaf4-28af729f8af6 - Creating Docker container 'purple-dormouse'...
12:45:12.874 | INFO | prefect.worker.docker.dockerworker 196bda7f-91c8-4f2d-aaf4-28af729f8af6 - Docker container 'purple-dormouse' has status 'created'
12:45:13.213 | INFO | prefect.worker.docker.dockerworker 196bda7f-91c8-4f2d-aaf4-28af729f8af6 - Docker container 'purple-dormouse' has status 'running'
12:45:13.624 | INFO | prefect.flow_runs.worker - Completed submission of flow run '2ae9462a-c308-4b92-a6c7-244c25905f4b'
/usr/local/lib/python3.9/runpy.py:127: 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))
<jemalloc>: MADV_DONTNEED does not work (memset will be used instead)
<jemalloc>: (This is the expected behaviour if you are running under QEMU)
Cloning into 'monorepo'...
15:45:43.527 | INFO | prefect.deployment - Cloned repository '<https://github.com/gaia-family/monorepo.git>' into 'monorepo'
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: pip install --upgrade pip
15:45:46.830 | ERROR | Flow run 'purple-dormouse' - Flow could not be retrieved from deployment.
Traceback (most recent call last):
File "<frozen importlib._bootstrap_external>", line 846, in exec_module
File "<frozen importlib._bootstrap_external>", line 982, in get_code
File "<frozen importlib._bootstrap_external>", line 1039, in get_data
FileNotFoundError: [Errno 2] No such file or directory: 'mixpanel_to_s3_test.py'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 395, in retrieve_flow_then_begin_flow_run
flow = await load_flow_from_flow_run(flow_run, client=client)
File "/usr/local/lib/python3.9/site-packages/prefect/client/utilities.py", line 51, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prefect/deployments/deployments.py", line 218, in load_flow_from_flow_run
flow = await run_sync_in_worker_thread(load_flow_from_entrypoint, str(import_path))
File "/usr/local/lib/python3.9/site-packages/prefect/utilities/asyncutils.py", line 91, in run_sync_in_worker_thread
return await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/usr/local/lib/python3.9/site-packages/prefect/flows.py", line 876, in load_flow_from_entrypoint
flow = import_object(entrypoint)
File "/usr/local/lib/python3.9/site-packages/prefect/utilities/importtools.py", line 201, in import_object
module = load_script_as_module(script_path)
File "/usr/local/lib/python3.9/site-packages/prefect/utilities/importtools.py", line 164, in load_script_as_module
raise ScriptError(user_exc=exc, path=path) from exc
prefect.exceptions.ScriptError: Script at 'mixpanel_to_s3_test.py' encountered an exception: FileNotFoundError(2, 'No such file or directory')
> Running git_clone step...
> Running pip_install_requirements step...
12:45:49.751 | INFO | prefect.worker.docker.dockerworker 196bda7f-91c8-4f2d-aaf4-28af729f8af6 - Docker container 'purple-dormouse' has status 'exited'
12:45:49.768 | INFO | prefect.worker.docker.dockerworker 196bda7f-91c8-4f2d-aaf4-28af729f8af6 - Docker container 'purple-dormouse' has status 'exited'