Skip to content
Snippets Groups Projects
Commit 50568cf4 authored by Roman Sliva's avatar Roman Sliva
Browse files

Update slurm-job-submission-and-execution.md

parent 6054376e
No related branches found
No related tags found
No related merge requests found
Pipeline #33266 passed with warnings
......@@ -36,58 +36,6 @@ On Barbora cluster all queues/partitions provide full node allocation, whole nod
On Complementary systems only some queues/partitions provide full node allocation, see [Complementary systems documentation][2] for details.
## Getting Job Information
Show all jobs on system:
```console
$ squeue
```
Show my jobs:
```console
$ squeue --me
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
104 qcpu interact user R 1:48 2 cn[101-102]
```
Show job details for specific job:
```console
$ scontrol show job JOBID
```
Show job details for executing job from job session:
```console
$ scontrol show job $SLURM_JOBID
```
Show my jobs using long output format which includes time limit:
```console
$ squeue --me -l
```
Show my jobs in running state:
```console
$ squeue --me -t running
```
Show my jobs in pending state:
```console
$ squeue --me -t pending
```
Show jobs for given project:
```console
$ squeue -A PROJECT-ID
```
## Running Interactive Jobs
Run interactive job - queue qcpu_exp, one node by default, one task by default:
......@@ -203,7 +151,62 @@ cn101
cn102
```
## Job States
## Job Management
### Getting Job Information
Show all jobs on system:
```console
$ squeue
```
Show my jobs:
```console
$ squeue --me
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
104 qcpu interact user R 1:48 2 cn[101-102]
```
Show job details for specific job:
```console
$ scontrol show job JOBID
```
Show job details for executing job from job session:
```console
$ scontrol show job $SLURM_JOBID
```
Show my jobs using long output format which includes time limit:
```console
$ squeue --me -l
```
Show my jobs in running state:
```console
$ squeue --me -t running
```
Show my jobs in pending state:
```console
$ squeue --me -t pending
```
Show jobs for given project:
```console
$ squeue -A PROJECT-ID
```
### Job States
The most common job states are (in alphabetical order):
......@@ -222,7 +225,7 @@ The most common job states are (in alphabetical order):
| SI | SIGNALING | Job is being signaled. |
| TO | TIMEOUT | Job terminated upon reaching its time limit. |
## Modifying Jobs
### Modifying Jobs
In general:
......@@ -242,7 +245,7 @@ Set/modify job's comment:
$ scontrol update JobId=JOBID Comment='The best job ever'
```
## Deleting Jobs
### Deleting Jobs
Delete job by job id:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment