Peter Roelants
05/19/2021, 6:10 AM/venv/lib/python3.9/site-packages/prefect/engine/task_runner.py:865: UserWarning: This task is running in a daemonic subprocess; consequently Prefect can only enforce a soft timeout limit, i.e., if your Task reaches its timeout limit it will enter a TimedOut state but continue running in the background.
I'm running a scheduled flow via a Docker Agent with DaskExecutors (multiple processes due to CPU intensive nature of the task). Some of the tasks in the flow can hang and thus I've added a timeout on the task.
This warning scares me because, if I interpret it correctly, it might mean that certain processes might hang indefinitely.
What is the best way to avoid this and still benefit from running multiple CPU intensive tasks in parallel with Prefect?
(I'm running Prefect 0.14.19 and Dask 2021.5.0).Kevin Kho
Peter Roelants
05/19/2021, 1:57 PMKevin Kho
Peter Roelants
05/19/2021, 2:23 PMKevin Kho
Kevin Kho
Peter Roelants
05/19/2021, 3:11 PMPeter Roelants
05/19/2021, 3:20 PMLocalDaskExecutor
circumvents this issue.
I think it was my fault for using the DaskExecutor
locally on an instance run by the Docker Agent.Kevin Kho
Zanie
Peter Roelants
05/20/2021, 6:43 AM