Name: ejotl
Owner: Fred Hutchinson Cancer Research Center
Description: Extend JOb Time Limit - extend a slurm job's time limit
Created: 2017-07-24 15:44:17.0
Updated: 2017-07-24 16:35:04.0
Pushed: 2017-07-24 20:10:39.0
Homepage: null
Size: 17
Language: Python
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Extend JOb Time Limit - extend a slurm job's time limit
Only the Slurm administrator or root may extend a job's time limit. This script allows a user to do this, but will put some constraints on the activity (e.g. a time limit may only be extended by 30%, only allow 2 extensions, etc.)
ejotl <jobid> <time spec>
<jobid>
: job ID of a running or queued job
<time spec>
: a Slurm time specification indicating the amount of time to add/remove.
ejotl 23457243 +3-12
Extends job 23457243 by three days, twelve hours
ejotl 12345 -12:13:00
Removes twelve hours, thirteen minutes from job 12345
ejotl 98691 4-0
Explicitly sets the time limit for job 98691 to four days
To Be Done
This is installed set-uid root (so full-safeties on, please). When invoked it will make the following checks before altering a job's time limit:
Job changes are stored in AWS simpledb. Actions are logged using the job ID as the “item” in simpledb. The attributes store who, what, when.