Hi Sean, Thanks for your reply. Sometimes you need another eye to look at things after a while. I looked every where but didn't see the option to add priority in the batch file when sending jobs. Only with "scontrol update'. This will help alot.
About setting it above the greatest currently pending, thats right, its just that I wanted to avoid looping on all pending jobs. Maybe I'll do some test to find out. Thanks again, Roe On Dec 20, 2016 12:23 PM, "Sean McGrath" <smcg...@tchpc.tcd.ie> wrote: Hi, On Tue, Dec 20, 2016 at 02:09:12AM -0800, Roe Zohar wrote: > Hello, I have slurm configure with basic builtin priority (I cant change > that right now). I have a need to let some one sending jobs with higher > priority then the jobs already in queue. > > I don't see a way to set the priority when sending jobs, only after the job > is on queue. Is that currect? > sbatch, salloc & srun man pages have the following: --priority=<value> Request a specific job priority. May be subject to configuration specific constraints. Only Slurm operators and administrators can set the priority of a job. > Second, I thought of checking the priority of current running jobs and then > loop through the new jobs I sent and update thier priority to a higher one. > Is this sound good? If so, what is the max priority slurm job can get. > Increasing the priority of pending jobs to bump them above the other pending jobs has been our approach to this type of thing before. sprio -l scontrol update jobid=12345 priority=100000000 I don't know what the max priority can be set to, sorry. You should only need to set it above the greatest priority score for the pending job with highest priority for it to take precedence over the current running jobs. Hope that helps. Sean > (I know its not best practice, but thats what I need right now) > > Thanks in advance. > Roy -- Sean McGrath M.Sc Systems Administrator Trinity Centre for High Performance and Research Computing Trinity College Dublin sean.mcgr...@tchpc.tcd.ie https://www.tcd.ie/ https://www.tchpc.tcd.ie/ +353 (0) 1 896 3725