David Ojeda
01/21/2025, 12:45 AMMarvin
01/21/2025, 12:45 AMStatus.created
instead of Status.closed
can indicate issues with the shutdown process.
For more detailed guidance, you might want to explore this GitHub issue related to Dask worker shutdown and restart problems.
If these suggestions don't resolve your issue, providing more context about your environment (e.g., are you using Dask, Kubernetes, etc.) could help in troubleshooting further.David Ojeda
01/21/2025, 12:57 AMprefect worker start -p my-work-pool -l 4
I get this error:
16:43:49.173 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Discovered 0 scheduled_flow_runs
16:43:49.179 | INFO | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Found 1 flow runs awaiting cancellation.
16:43:49.180 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Worker synchronized with the Prefect API server.
16:43:49.215 | WARNING | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Unable to kill process 26924: The process was not found. Marking flow run as cancelled.
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Exiting worker context...
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Tearing down worker...
Traceback (most recent call last):
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/prefect/workers/process.py", line 185, in start
async with anyio.create_task_group() as loops_task_group:
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 771, in __aexit__
raise exc_val
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 743, in __aexit__
await self._on_completed_fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 1066c3430
Marvin
01/21/2025, 12:57 AMDavid Ojeda
01/21/2025, 12:58 AMprefect worker start -p my-work-pool -l 4
I get this error:
16:43:49.215 | WARNING | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Unable to kill process 26924: The process was not found. Marking flow run as cancelled.
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Exiting worker context...
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Tearing down worker...
Traceback (most recent call last):
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/prefect/workers/process.py", line 185, in start
async with anyio.create_task_group() as loops_task_group:
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 771, in __aexit__
raise exc_val
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 743, in __aexit__
await self._on_completed_fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 1066c3430
Marvin
01/21/2025, 12:58 AMDavid Ojeda
01/21/2025, 12:58 AMprefect worker start -p my-work-pool -l 4
I get this error:
16:43:49.215 | WARNING | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Unable to kill process 26924: The process was not found. Marking flow run as cancelled.
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Exiting worker context...
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Tearing down worker...
Traceback (most recent call last):
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/prefect/workers/process.py", line 185, in start
async with anyio.create_task_group() as loops_task_group:
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 771, in __aexit__
raise exc_val
File "/Users/david/.virtualenvs/hc-refactor/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 743, in __aexit__
await self._on_completed_fut
asyncio.exceptions.CancelledError: Cancelled by cancel scope 1066c3430
Marvin
01/21/2025, 12:58 AMDavid Ojeda
01/21/2025, 12:59 AMprefect worker start -p my-work-pool -l 4
I get this error:
16:43:49.215 | WARNING | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Unable to kill process 26924: The process was not found. Marking flow run as cancelled.
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Exiting worker context...
16:43:49.216 | DEBUG | prefect.workers.process.processworker aca1e820-0c09-45f3-bacc-2990e8620a31 - Tearing down worker...
asyncio.exceptions.CancelledError: Cancelled by cancel scope 1066c3430
Marvin
01/21/2025, 12:59 AM