https://prefect.io logo
Title
c

Chris L.

08/15/2022, 8:32 AM
Hello there, a question about Prefect 2.0 and flows using Dask runner. I posted it over at data-tricks-and-tips but this places seems to be more active. Hoping somebody can help with this! https://prefect-community.slack.com/archives/C03CY667GGM/p1660137898917299 It relates to getting the Prefect's task's Dask worker client from inside the task. Using
worker_client
context manager works as expected in Prefect 1.0 (see https://discourse.prefect.io/t/how-to-use-dask-without-mapping-in-prefect-1-0-using-das[…]-client-to-call-client-submit-inside-a-prefect-task/470/13) but this behavior doesn't seem to migrate over to 2.0
a

Anna Geller

08/15/2022, 9:48 AM
Hi Chris, since you didn't get much Dask help here, it might be worth trying to post in Dask Discourse dask.discourse.group