Seen thanks to dask/dask-kubernetes#98.
Currently, _job_id_from_worker_name function is used as worker_key in adaptive options: https://github.com/dask/dask-jobqueue/blob/master/dask_jobqueue/core.py#L145.
However, this is not in place when manually scaling down or up. This could be a nice thing to avoid stopping too many workers when scaling down.
This may have to be changed upstream in distributed, somewhere here: https://github.com/dask/distributed/blob/master/distributed/deploy/cluster.py#L103. We could use a self.worker_key method if defined as another kwarg.
@mrocklin any opinion on that?
Seen thanks to dask/dask-kubernetes#98.
Currently,
_job_id_from_worker_namefunction is used as worker_key in adaptive options: https://github.com/dask/dask-jobqueue/blob/master/dask_jobqueue/core.py#L145.However, this is not in place when manually scaling down or up. This could be a nice thing to avoid stopping too many workers when scaling down.
This may have to be changed upstream in distributed, somewhere here: https://github.com/dask/distributed/blob/master/distributed/deploy/cluster.py#L103. We could use a
self.worker_key methodif defined as another kwarg.@mrocklin any opinion on that?