Skip to content

Commit

Permalink
JobQueueCluster: add scheduler_cls argumet (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
bfis committed Sep 6, 2021
1 parent 45360c9 commit 7e8a9a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dask_jobqueue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@
port the web dashboard should use or ``scheduler_options={'host': 'your-host'}``
to specify the host the Dask scheduler should run on. See
:class:`distributed.Scheduler` for more details.
scheduler_cls : type
Changes the class of the used Dask Scheduler. Defaults to Dask's
:class:`distributed.Scheduler`.
""".strip()


Expand Down Expand Up @@ -444,6 +447,7 @@ def __init__(
dashboard_address=None,
host=None,
scheduler_options=None,
scheduler_cls=Scheduler, # Use local scheduler for now
# Options for both scheduler and workers
interface=None,
protocol="tcp://",
Expand Down Expand Up @@ -510,7 +514,7 @@ def __init__(
scheduler_options["interface"] = interface

scheduler = {
"cls": Scheduler, # Use local scheduler for now
"cls": scheduler_cls,
"options": scheduler_options,
}

Expand Down

0 comments on commit 7e8a9a0

Please sign in to comment.