In Distributed's Adaptive class, there are calls to Cluster implementations of scale_up and scale_down from within coroutines. While it would be possible to call these as coroutines in some cases (as is the case in dask-drmaa), this appears to not be part of Adaptive's spec for its cluster instance nor is part of the Cluster's spec. A cursory glance at dask-jobqueue suggests it doesn't use coroutines either. Considering it would be possible to make scale_up and scale_down coroutines and these would fit nicely within the Adaptive model, could we consider migrating in that direction?
In Distributed's
Adaptiveclass, there are calls to Cluster implementations ofscale_upandscale_downfrom within coroutines. While it would be possible to call these as coroutines in some cases (as is the case indask-drmaa), this appears to not be part ofAdaptive's spec for its cluster instance nor is part of theCluster's spec. A cursory glance atdask-jobqueuesuggests it doesn't use coroutines either. Considering it would be possible to makescale_upandscale_downcoroutines and these would fit nicely within theAdaptivemodel, could we consider migrating in that direction?