Ticket 5459 - specifying job dependency on already terminated job
Summary: specifying job dependency on already terminated job
Status: RESOLVED INFOGIVEN
Alias: None
Product: Slurm
Classification: Unclassified
Component: User Commands (show other tickets)
Version: 17.02.7
Hardware: Linux Linux
: 3 - Medium Impact
Assignee: Director of Support
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2018-07-20 17:12 MDT by George Hwa
Modified: 2018-07-23 02:55 MDT (History)
1 user (show)

See Also:
Site: KLA-Tencor RAPID
Slinky Site: ---
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
Google sites: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
NoveTech Sites: ---
Nvidia HWinf-CS Sites: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Tzag Elita Sites: ---
Linux Distro: ---
Machine Name:
CLE Version:
Version Fixed:
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this ticket.
Description George Hwa 2018-07-20 17:12:36 MDT
When sbatch submitting a new job, if the dependent job has already terminated abnormally (FAILED), will the new job run at all?
Comment 1 Alejandro Sanchez 2018-07-23 02:55:18 MDT
Yes, unless you specify a dependency type[1] that would never be satisfied. For instance:

 afterok:job_id[:jobid...]
This job can begin execution after the specified jobs have successfully executed (ran to completion with an exit code of zero).

This would never be satisfied because the specified job didn't exit with 0 code. But if you specify after, or afterany or afternotok the job should run.

You might also be interested in the SchedulerParameters option kill_invalid_depend:

 kill_invalid_depend
If a job has an invalid dependency and it can never run terminate it and set its state to be JOB_CANCELLED. By default the job stays pending with reason DependencyNeverSatisfied.

[1] https://slurm.schedmd.com/sbatch.html#OPT_dependency