Skip to content
Snippets Groups Projects

Added further Slurm example with job dependency to a Datamover job

Merged Danny Marc Rotscher requested to merge 89-docs-jobs_and_resources-slurm_examples-md into preview
All threads resolved!
@@ -355,4 +355,18 @@ file) that will be executed one after each other with different CPU numbers:
## Array-Job with Afterok-Dependency and Datamover Usage
This part is under construction.
First you have to start your Datamover job, which for example transfers your input data from one
workspace to another.
```console
marie@login: export DATAMOVER_JOB=$(dtcp /scratch/ws/1/marie-source/input.txt /beegfs/ws/1/marie-target/. | awk '{print $4}')
```
Now you can refer to the job id of the Datamover jobs from your work load jobs.
```console
marie@login: srun --dependency afterok:${DATAMOVER_JOB} ls /beegfs/ws/1/marie-target
srun: job 23872871 queued and waiting for resources
srun: job 23872871 has been allocated resources
input.txt
```
Loading