From 7a215e1a62490b56c9a7e55ba9e90067f707acf0 Mon Sep 17 00:00:00 2001
From: Danny Rotscher <danny.rotscher@tu-dresden.de>
Date: Wed, 23 Feb 2022 09:25:35 +0100
Subject: [PATCH] Added further Slurm example with job dependency to a
 Datamover job

---
 .../docs/jobs_and_resources/slurm_examples.md     | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

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 65e445f35..445f1f3b2 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
+```
-- 
GitLab