Skip to content

Use the grouped workers worker_key function in scale outside of adaptive #152

Description

@guillaumeeb

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?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions