Hprc banner tamu.png

Difference between revisions of "Terra:Batch Job Submissions"

From TAMU HPRC
Jump to: navigation, search
(Job Submission)
(Job Submission)
Line 1: Line 1:
 
== Job Submission ==
 
== Job Submission ==
Once you have your job file ready, it is time to submit your job.  
+
Once you have your job file ready, it is time to submit your job. You can submit your job to slurm with the following command:
 +
    [user1@terra1 ~]$ sbatch MyJob.slurm
 +
    Submitted batch job 3606
  
 
After a job has been submitted, you may want to check on its progress or cancel it. Below is a list of the most used job monitoring and control commands for jobs on Terra.
 
After a job has been submitted, you may want to check on its progress or cancel it. Below is a list of the most used job monitoring and control commands for jobs on Terra.
Line 26: Line 28:
 
|squeue -u terraUser1
 
|squeue -u terraUser1
 
|}
 
|}
 
    [user1@terra1 ~]$ sbatch MyJob.slurm
 
    Submitted batch job 3606
 
  
  
 
[[Category:Terra]]
 
[[Category:Terra]]

Revision as of 15:58, 18 November 2016

Job Submission

Once you have your job file ready, it is time to submit your job. You can submit your job to slurm with the following command:

   [user1@terra1 ~]$ sbatch MyJob.slurm 
   Submitted batch job 3606

After a job has been submitted, you may want to check on its progress or cancel it. Below is a list of the most used job monitoring and control commands for jobs on Terra.

Job Monitoring and Control Commands
Function Command Example
Submit a job sbatch [script_file] sbatch FileName.job
Cancel/Kill a job scancel [job_id] scancel 101204
Check status of a single job squeue --job [job_id] squeue --job 101204
Check status of all
jobs for a user
squeue -u [user_name] squeue -u terraUser1