By the way, Prefect 2.3.0 didn't fix the issue of agent traceback.....
(venv) D:\Raghu\gProject>prefect agent start -q hour-work-queue
Starting v2.3.0 agent connected to
http://127.0.0.1:4200/api...
_ _ _ _ _ _ _____ _
_ _ _ _ _____
| _ \ _ \ __| __| __/
_| _| /_\ / __|
_| \| | _|
| _/ / _|| _||
| (_ | | / _ \ (_ | _|| .` | | |
|_| |_|_\___|_| |___\___| |_| /_/ \_\___|___|_|\_| |_|
Agent started! Looking for work from queue(s): hour-work-queue...
00
1532.074 | ERROR | prefect.agent -
Traceback (most recent call last):
File "D:\Raghu\Python\lib\asyncio\windows_events.py", line 462, in finish_recv
return ov.getresult()
OSError: [WinError 64] The specified network name is no longer available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Raghu\Python\lib\asyncio\proactor_events.py", line 280, in _loop_reading
data = fut.result()
File "D:\Raghu\Python\lib\asyncio\windows_events.py", line 817, in _poll
value = callback(transferred, key, ov)
File "D:\Raghu\Python\lib\asyncio\windows_events.py", line 466, in finish_recv
raise ConnectionResetError(*exc.args)
ConnectionResetError: [WinError 64] The specified network name is no longer available
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Raghu\venv\lib\site-packages\httpcore\_exceptions.py", line 8, in map_exceptions
yield
File "D:\Raghu\venv\lib\site-packages\httpcore\backends\asyncio.py", line 33, in read
return await self._stream.receive(max_bytes=max_bytes)
File "D:\Raghu\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 1274, in receive
raise self._protocol.exception
anyio.BrokenResourceError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Raghu\venv\lib\site-packages\httpx\_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "D:\Raghu\venv\lib\site-packages\httpx\_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\connection.py", line 90, in handle_async_request
return await self._connection.handle_async_request(request)
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\http11.py", line 105, in handle_async_request
raise exc
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\http11.py", line 84, in handle_async_request
) = await self._receive_response_headers(**kwargs)
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\http11.py", line 148, in _receive_response_headers
event = await self._receive_event(timeout=timeout)
File "D:\Raghu\venv\lib\site-packages\httpcore\_async\http11.py", line 177, in _receive_event
data = await self._network_stream.read(
File "D:\Raghu\venv\lib\site-packages\httpcore\backends\asyncio.py", line 35, in read
return b""
File "D:\Raghu\Python\lib\contextlib.py", line 137, in
exit
self.gen.throw(typ, value, traceback)
File "D:\Raghu\venv\lib\site-packages\httpcore\_exceptions.py", line 12, in map_exceptions
raise to_exc(exc)
httpcore.ReadError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\Raghu\venv\lib\site-packages\prefect\agent.py", line 129, in get_and_submit_flow_runs
queue_runs = await self.client.get_runs_in_work_queue(
File "D:\Raghu\venv\lib\site-packages\prefect\client.py", line 918, in get_runs_in_work_queue
response = await
self._client.post(
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1842, in post
return await self.request(
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1527, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "D:\Raghu\venv\lib\site-packages\prefect\client.py", line 257, in send
await super().send(*args, **kwargs)
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1614, in send
response = await self._send_handling_auth(
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1642, in _send_handling_auth
response = await self._send_handling_redirects(
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1679, in _send_handling_redirects
response = await self._send_single_request(request)
File "D:\Raghu\venv\lib\site-packages\httpx\_client.py", line 1716, in _send_single_request
response = await transport.handle_async_request(request)
File "D:\Raghu\venv\lib\site-packages\httpx\_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "D:\Raghu\Python\lib\contextlib.py", line 137, in
exit
self.gen.throw(typ, value, traceback)
File "D:\Raghu\venv\lib\site-packages\httpx\_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ReadError
00
1537.466 | INFO | prefect.agent - Submitting flow run '48ede090-c668-444e-8e67-1cb4a9837101'
00
1541.737 | INFO | prefect.infrastructure.process - Opening process 'natural-seagull'...
00
1541.811 | INFO | prefect.agent - Completed submission of flow run '48ede090-c668-444e-8e67-1cb4a9837101'
00
1546.709 | INFO | prefect.engine - Created flow run 'hopping-parrot' for flow 'print-pipeline-hour'
00
1546.836 | ERROR | Flow run 'hopping-parrot' - Crash detected! Execution was interrupted by an unexpected exception.
00
1546.898 | ERROR | Flow run 'natural-seagull' - Flow could not be retrieved from deployment.