Hi everyone,

I'm wondering if there is a way to submit a job array where each task is
dependent on the previous task, so if one fails the subsequent tasks don't
start.
I'm aware of how dependencies work, and have a solution for this using a
for loop. It submits a jobs with a dependency on the previous job id as you
go through the loop. This works, but I like the idea of using something like

--array=1-5%1

so that only one task runs at a time. They do run in order, but if a task
in the middle fails, it will just go right on to the next one. Is there an
easy way to give each task a dependency on the previous task so the rest of
the tasks won't start?

Thanks for any help,

Mike

Reply via email to