[slurm-dev] Job Dependencies on Arrays

0 views
Skip to first unread message

Paul Edmon

unread,
Oct 28, 2013, 11:25:59 AM10/28/13
to slurm-dev

So if I have a job that I want to run after an array of jobs complete
how do I do that with job dependencies? I want to make sure that all
the jobs in the array have completed prior to the job I want to run
runs. Would you reference the primary job ID? Or would you reference
the entire span of jobs namely JobID_[1-100]?

-Paul Edmon-

David Bigagli

unread,
Oct 28, 2013, 2:54:51 PM10/28/13
to slurm-dev


Hi, this feature is currently not in Slurm. As soon as one array element
satisfies the dependency condition the dependent job will start.
--

Thanks,
/David/Bigagli

www.schedmd.com

Blomqvist Janne

unread,
Oct 28, 2013, 4:15:07 PM10/28/13
to slurm-dev

Hi,

see also http://bugzilla.schedmd.com/show_bug.cgi?id=443

--
Janne Blomqvist

________________________________________
From: David Bigagli [da...@schedmd.com]
Sent: Monday, October 28, 2013 20:54
To: slurm-dev
Subject: [slurm-dev] Re: Job Dependencies on Arrays

Moe Jette

unread,
Oct 28, 2013, 8:37:50 PM10/28/13
to slurm-dev

Paul,

I'm working on getting that into the next release v2.6.4, which should
be available within days. To wait for all job array elements to
complete, you would just specify the primary job id. You can also
specify individual array elements. For example:

# wait for specific elements of job array
sbatch --depend=123_4 ...
sbatch --depend=after:123_4:123_5 ...

# wait all elements of job array
sbatch --depend=after:123 ...

Paul Edmon

unread,
Oct 28, 2013, 10:40:51 PM10/28/13
to slurm-dev

Thanks. That should work nicely.

-Paul Edmon-
Reply all
Reply to author
Forward
0 new messages