https://prefect.io logo
#prefect-community
Title
# prefect-community
c

Chris Eberly

10/08/2019, 5:07 PM
last question, and apologies if this has been answered. if folks have an existing Dask-ified task but want to use other parts of Prefect with the DaskExecutor, is it recommended to rewrite the existing task using just prefect or simply run the old task separately
c

Chris White

10/08/2019, 5:36 PM
Hey Chris! No worries; this is an excellent question; Prefect tasks add a lot of baggage to the Dask scheduler, so I wouldn’t recommend replacing the Dask API with the Prefect API wholesale. The only consideration you’ll need to make with your task-dask logic is that the task will be executed on a worker, and some packages have trouble with this as they assume they are being executed in a process external to the dask cluster
c

Chris Eberly

10/08/2019, 5:41 PM
thanks!