Skip to content

Commit 23c50da

Browse files
Fix SLURMRunner capitalisation (#665)
1 parent b91983d commit 23c50da

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dask_jobqueue/slurm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def __init__(self, *args, scheduler_file="scheduler-{job_id}.json", **kwargs):
205205
if not scheduler_file:
206206
raise RuntimeError(
207207
"scheduler_file must be specified in either the "
208-
"scheduler_options or as keyword argument to SlurmRunner."
208+
"scheduler_options or as keyword argument to SLURMRunner."
209209
)
210210

211211
# Encourage filename uniqueness by inserting the job ID

docs/source/runners-overview.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ variable to decide what role reach process should play and uses the shared files
1111
1212
# myscript.py
1313
from dask.distributed import Client
14-
from dask_jobqueue.slurm import SlurmRunner
14+
from dask_jobqueue.slurm import SLURMRunner
1515
16-
# When entering the SlurmRunner context manager processes will decide if they should be
16+
# When entering the SLURMRunner context manager processes will decide if they should be
1717
# the client, schdeduler or a worker.
1818
# Only process ID 1 executes the contents of the context manager.
1919
# All other processes start the Dask components and then block here forever.
20-
with SlurmRunner(scheduler_file="/path/to/shared/filesystem/scheduler-{job_id}.json") as runner:
20+
with SLURMRunner(scheduler_file="/path/to/shared/filesystem/scheduler-{job_id}.json") as runner:
2121
2222
# The runner object contains the scheduler address info and can be used to construct a client.
2323
with Client(runner) as client:
@@ -29,4 +29,4 @@ variable to decide what role reach process should play and uses the shared files
2929
assert client.submit(lambda x: x + 1, 10).result() == 11
3030
assert client.submit(lambda x: x + 1, 20, workers=2).result() == 21
3131
32-
# When process ID 1 exits the SlurmRunner context manager it sends a graceful shutdown to the Dask processes.
32+
# When process ID 1 exits the SLURMRunner context manager it sends a graceful shutdown to the Dask processes.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy