'partition (Queue) configuration in SLURM scheduler

I had a few questions regarding how to use SLURM scheduler. Assume [if required] that we have the required permissions [admin, etc.] of a cluster.

  1. How can we define a maximum wait time for a job before execution (when it is in the partition (queue)?

  2. If a job has reached its maximum wait time (for a certain partition), can we change its current partition specified by the user in the job script?

  3. Can we define a parameter that does not allow users or specific jobs to be executed in a particular partition?

Thank you very much in advance for your help



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source