Skip to content

A Slurm job-submit plugin to enable the use of Python scripting

License

Notifications You must be signed in to change notification settings

ACRC/slurm-job-submit-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://travis-ci.com/ACRC/slurm-job-submit-python.svg?branch=master

Python Job Submit plugin for Slurm

Similar the now built-in plugin for Lua, this plugin allows the use of Python scripts to control job submission.

For example, a plugin file called /etc/slurm/job_submit.py with:

def job_submit(job_desc, submit_uid):
    job_desc.partition = "debug"
    return 0

will set the partition of all jobs to be debug.

Or, a plugin like:

def job_submit(job_desc, submit_uid):
    job_desc.environment["NEW_ENV_VAR"] = "a new env var"
    return 0

will set an environment variable called NEW_ENV_VAR with the value a new env var in all jobs.

About

A Slurm job-submit plugin to enable the use of Python scripting

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published