Skip to content

Instantly share code, notes, and snippets.

@khuyentran1401
Created September 12, 2022 22:06
Show Gist options
  • Save khuyentran1401/0992e07fb62c65f7c05e96a5c3f099c6 to your computer and use it in GitHub Desktop.
Save khuyentran1401/0992e07fb62c65f7c05e96a5c3f099c6 to your computer and use it in GitHub Desktop.
17:02:46.645 | INFO | prefect.agent - Submitting flow run '7fd49764-045f-4c68-a071-2470a1cf2070'
17:02:46.835 | INFO | prefect.infrastructure.docker-container - Creating Docker container 'zircon-ant'...
17:02:46.906 | INFO | prefect.infrastructure.docker-container - Docker container 'zircon-ant' has status 'created'
17:02:47.230 | INFO | prefect.agent - Completed submission of flow run '7fd49764-045f-4c68-a071-2470a1cf2070'
17:02:47.286 | INFO | prefect.infrastructure.docker-container - Docker container 'zircon-ant' has status 'running'
22:03:16.533 | ERROR | prefect.engine - Engine execution of flow run '7fd49764-045f-4c68-a071-2470a1cf2070' exited with unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/prefect/client.py", line 1516, in read_flow_run
response = await self._client.get(f"/flow_runs/{flow_run_id}")
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1751, in get
return await self.request(
File "/usr/local/lib/python3.9/site-packages/httpx/_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.9/site-packages/prefect/client.py", line 279, in send
response.raise_for_status()
File "/usr/local/lib/python3.9/site-packages/prefect/client.py", line 225, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url 'http://ephemeral-orion/api/flow_runs/7fd49764-045f-4c68-a071-2470a1cf2070'
Response: {'detail': 'Flow run not found'}
For more information check: https://httpstatuses.com/404
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 1580, in <module>
enter_flow_run_engine_from_subprocess(flow_run_id)
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 182, in enter_flow_run_engine_from_subprocess
return anyio.run(retrieve_flow_then_begin_flow_run, flow_run_id)
File "/usr/local/lib/python3.9/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/local/lib/python3.9/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
return future.result()
File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "/usr/local/lib/python3.9/site-packages/prefect/client.py", line 103, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/prefect/engine.py", line 254, in retrieve_flow_then_begin_flow_run
flow_run = await client.read_flow_run(flow_run_id)
File "/usr/local/lib/python3.9/site-packages/prefect/client.py", line 1519, in read_flow_run
raise prefect.exceptions.ObjectNotFound(http_exc=e) from e
prefect.exceptions.ObjectNotFound
17:03:17.496 | INFO | prefect.infrastructure.docker-container - Docker container 'zircon-ant' has status 'exited'
17:03:46.948 | INFO | prefect.agent - Submitting flow run '6c1f0112-afda-4ba9-b257-25073b439748'
17:03:47.061 | INFO | prefect.infrastructure.docker-container - Creating Docker container 'cautious-turkey'...
17:03:47.130 | INFO | prefect.infrastructure.docker-container - Docker container 'cautious-turkey' has status 'created'
17:03:47.464 | INFO | prefect.agent - Completed submission of flow run '6c1f0112-afda-4ba9-b257-25073b439748'
17:03:47.528 | INFO | prefect.infrastructure.docker-container - Docker container 'cautious-turkey' has status 'running'
22:04:09.415 | ERROR | prefect.engine - Engine execution of flow run '6c1f0112-afda-4ba9-b257-25073b439748' exited with unexpected exception
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 1516, in read_flow_run
response = await self._client.get(f"/flow_runs/{flow_run_id}")
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1751, in get
return await self.request(
File "/usr/local/lib/python3.10/site-packages/httpx/_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 279, in send
response.raise_for_status()
File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 225, in raise_for_status
raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url 'http://ephemeral-orion/api/flow_runs/6c1f0112-afda-4ba9-b257-25073b439748'
Response: {'detail': 'Flow run not found'}
For more information check: https://httpstatuses.com/404
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 1580, in <module>
enter_flow_run_engine_from_subprocess(flow_run_id)
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 182, in enter_flow_run_engine_from_subprocess
return anyio.run(retrieve_flow_then_begin_flow_run, flow_run_id)
File "/usr/local/lib/python3.10/site-packages/anyio/_core/_eventloop.py", line 70, in run
return asynclib.run(func, *args, **backend_options)
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 292, in run
return native_run(wrapper(), debug=debug)
File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 287, in wrapper
return await func(*args)
File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 103, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/site-packages/prefect/engine.py", line 254, in retrieve_flow_then_begin_flow_run
flow_run = await client.read_flow_run(flow_run_id)
File "/usr/local/lib/python3.10/site-packages/prefect/client.py", line 1519, in read_flow_run
raise prefect.exceptions.ObjectNotFound(http_exc=e) from e
prefect.exceptions.ObjectNotFound
17:04:10.315 | INFO | prefect.infrastructure.docker-container - Docker container 'cautious-turkey' has status 'exited'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment