Difference between revisions of "Torque"

From HPC Wiki
Jump to navigation Jump to search
(Created page with "== Job Submission == This command submits the job your defined in your jobscript to the batch system: $ qsub jobscript.sh Just like any other incoming job, y...")
 
Line 1: Line 1:
 
== Job Submission ==
 
== Job Submission ==
  
This command submits the job your defined in your [[Jobscript|jobscript]] to the batch system:
+
This command submits the job you defined in your [[Jobscript|jobscript]] to the batch system:
  
 
  $ qsub jobscript.sh
 
  $ qsub jobscript.sh

Revision as of 09:04, 29 March 2018

Job Submission

This command submits the job you defined in your jobscript to the batch system:

$ qsub jobscript.sh

Just like any other incoming job, your job will first be queued. Then, the scheduler decides when your job will be run. The more resources your job requires, the longer it may be waiting to execute.

You can check the current status of your submitted jobs and their job ids with the following shell command. The most common states for a job are "pend", "run", "queue" (Que) or "on hold" (Hold). The command also shows the elapsed time since your job has started running and the time limit.

$ qstat -u <user_id>

In case you submitted a job on accident or realised that your job might not be running correctly, you can always remove it from the queue or terminate it when running by typing:

$ qdel <job_id>