Search code examples
slurmsbatch

Slurm: Is it possible to give or change pid of the submitted job via sbatch


When we submit a job via sbatch, the pid to jobs given by incremental order. This order start from again from 1 based on my observation.

sbatch  -N1 run.sh
Submitted batch job 20

//Goal is to change submitted batch job's id, if possible.

[Q1] For example there is a running job under slurm. When we reboot the node, does the job continue running? and does its pid get updated or stay as it was before?

[Q2] Is it possible to give or change pid of the submitted job with a unique id that the cluster owner want to give?

Thank you for your valuable time and help.


Solution

  • If the node fails, the job is requeued - if this is permitted by the JobRequeue parameter in slurm.conf. It will get the same Job ID as the previously started run since this is the only identifier in the database for managing the jobs. (Users can override requeueing with the --no-requeue sbatch parameter.)

    It's not possible to change Job ID's, no.