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 c779670d5542c068d447cc9d32b0719f0412e473..66d06f557678db40abfad7a39cac328b62d12e71 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 @@ -420,25 +420,3 @@ In the following we provide two examples for scripts that submit chain jobs. Job 3/3: jobfile_c.sh Dependency: after job 2963709 ``` - -## Array-Job with Afterok-Dependency and Datamover Usage - -In this example scenario, imagine you need to move data, before starting the main job. -For this you may use a data transfer job and tell Slurm to start the main job immediately after -data transfer job successfully finish. - -First you have to start your data transfer 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 -```