If you refer to this line, from inside the scatter function, there are several things to try:
- Increase the timeout that is a kwarg o the function,
- But I think it would be better to use client.wait_for_worker, to get at least one worker before trygin to scatter.