Manage SLURM Job List for Project Resource
Source:R/project_resource.R
project_resource_add_jobs.RdAdds a SLURM job name to the list of active jobs for a project-resource association, or resets the job list.
Arguments
- project
Character string specifying the project name.
- resource
Character string specifying the resource name.
- job
Character string with the SLURM job name to add. If missing, the job list is reset to empty.
- reset
Logical indicating whether to clear the job list before adding. Default is FALSE. If TRUE, replaces all jobs with
job.
Details
The job list is a semicolon-separated string of SLURM job names stored in
the database. This list is used by project_stop to cancel
all jobs when stopping a project.
Job names are automatically added by worker_slurm when
submitting workers.
Currently only supports SLURM resources.