I have some function which uses image processing functions which are itself multithreaded. I distribute many of those function calls on a dask cluster. First, I started a sc