Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dask_jobqueue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ class JobQueueCluster(Cluster):
submit_command = None
cancel_command = None
scheduler_name = ''
_adaptive_options = {'worker_key': lambda ws: _job_id_from_worker_name(ws.name)}
job_id_regexp = r'(?P<job_id>\d+)'

def __init__(self,
Expand Down Expand Up @@ -258,6 +257,9 @@ def __repr__(self):
total_workers, len(self.running_jobs), total_jobs)
)

def _worker_key(self, worker_state):
return _job_id_from_worker_name(worker_state.name)

@property
def pending_jobs(self):
""" Jobs pending in the queue """
Expand Down