Note: You can check, cancel, and sometimes adjust jobs after submission. Use these commands to manage your jobs effectively.
Basic Job Management
Command | Purpose | Example |
---|---|---|
squeue -u <netid> |
List your jobs | squeue -u sam123 |
scancel <jobid> |
Cancel a job | scancel 123456 |
scancel -u <netid> |
Cancel all your jobs | scancel -u sam123 |
scontrol hold <jobid> |
Place a job on hold | scontrol hold 123456 |
scontrol release <jobid> |
Release a held job | scontrol release 123456 |
Modifying Jobs
Some options can be changed after submission using scontrol update
. For example:
scontrol update JobId=123456 TimeLimit=02:00:00
This increases the time limit (if allowed by the queue policy).
Other common modifications:
NumNodes=
– Change requested nodes (only before start).
Important: Not all changes are permitted once a job has started. If in doubt, cancel and resubmit with the corrected settings.
Tips
- Use
squeue
often to check job status. - If a job is stuck in queue, cancel and resubmit with adjusted resources.
- Interactive jobs (
srun --pty bash
) end automatically when you exit.