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
7 changes: 7 additions & 0 deletions dask_jobqueue/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@
Section to use from jobqueue.yaml configuration file.
name : str
Name of Dask worker. This is typically set by the Cluster
dask_worker_prefix : str
String to prepend to dask_worker_command for environments that have multiple tiers of submittal nodes.
""".strip()


Expand Down Expand Up @@ -149,6 +151,7 @@ def __init__(
python=sys.executable,
job_name=None,
config_name=None,
dask_worker_prefix=None,
):
self.scheduler = scheduler
self.job_id = None
Expand Down Expand Up @@ -237,9 +240,13 @@ def __init__(
self.header_skip = set(header_skip)

# dask-worker command line build

dask_worker_command = "%(python)s -m distributed.cli.dask_worker" % dict(
python=python
)
if(dask_worker_prefix) :
dask_worker_command = dask_worker_prefix + " " + dask_worker_command

command_args = [dask_worker_command, self.scheduler]
command_args += ["--nthreads", self.worker_process_threads]
if processes is not None and processes > 1:
Expand Down