Scripting the process of job submission often allows you to submit multiple jobs with greater speed, ease, and accuracy than you would achieve manually. The possibilities range from simply queueing a large number of tasks one by one, to establishing complex chains of dependent processes.

The end goal of scripting job submission is to issue srun or sbatch commands with appropriate arguments. In many cases, acquiring and creating these arguments is the hard part, especially when a dependent job requires the job ID of a job previously submitted. This section explores some techniques and use cases related to scripted job submission.

 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement