diff --git a/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md b/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md index 65e445f354d08a3473e226cc97c45ff6c01e8c48..445f1f3b2649eb5571c94875c920e8d6d38abda0 100644 --- a/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md +++ b/doc.zih.tu-dresden.de/docs/jobs_and_resources/slurm_examples.md @@ -355,4 +355,17 @@ 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 +```