Skip to content

slurm

Support for using Slurm as a backend for --job

Authors:

  • Kenneth Hoste (Ghent University)

Slurm

Bases: JobBackend

Manage SLURM server communication and create SlurmJob objects.

__init__(*args, **kwargs)

Constructor.

complete()

Complete a bulk job submission.

Release all user holds on submitted jobs, and disconnect from server.

init()

Initialise the PySlurm job backend.

make_job(script, name, env_vars=None, hours=None, cores=None)

Create and return a job dict with the given parameters.

queue(job, dependencies=frozenset())

Add a job to the queue.

PARAMETER DESCRIPTION
dependencies

jobs on which this job depends.

DEFAULT: frozenset()

SlurmJob

Bases: object

Job class for SLURM jobs.

__init__(script, name, env_vars=None, hours=None, cores=None)

Create a new Job to be submitted to SLURM.