I think this is because you have a worker importing prefect but it might not be on the worker image? Did you use the Dask image? The Prefect image contains Dask.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.