Ticket 2314

Summary: scontrol doesn't show dependency task IDs
Product: Slurm Reporter: Phil Schwan <phils>
Component: User CommandsAssignee: Tim Wickberg <tim>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: akmalm
Version: 14.11.10   
Hardware: Linux   
OS: Linux   
Site: DownUnder GeoSolutions Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 14.11.12 15.08.7 16.05.0-pre1 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Phil Schwan 2016-01-06 23:34:38 MST
It shows the ID when it's *, as in:

> # scontrol update job=17563808_101 dependency=afterany:17562622_*
> # scontrol show job 17563808_101
> JobId=17565111 ArrayJobId=17563808 ArrayTaskId=101 JobName=m1a_Drop_interp_trc
>    Priority=100 Nice=0 Account=user QOS=normal
 >   JobState=PENDING Reason=Dependency Dependency=afterany:17562622_*

but not when it's a specific ID:

> # scontrol update job=17563808_101 dependency=afterany:17562622_101
> # scontrol show job 17563808_101
> JobId=17565111 ArrayJobId=17563808 ArrayTaskId=101 JobName=m1a_Drop_interp_trc
>    Priority=100 Nice=0 Account=user QOS=normal
>    JobState=PENDING Reason=Dependency Dependency=afterany:17562622

Although it does appear to be honouring it correctly in the scheduling engine, so I think it's just an scontrol show job issue.
Comment 1 Tim Wickberg 2016-01-07 09:05:54 MST
As you surmised, it works correctly but the output format didn't print the task ids.

You can download a patch for 14.11 here:

https://github.com/SchedMD/slurm/commit/da4f5684141f1f46.patch

We don't anticipate ever releasing 14.11.12, so if you want it now you'll need to patch it and rebuild. 15.08.7 (expected towards the end of January) and on will also have the fix.

Note that there are some other fixes related to dependencies in newer releases - I think the 14.11 series had an issue where certain dependencies may be lost across slurmctld restart.

- Tim
Comment 2 Phil Schwan 2016-01-07 09:11:01 MST
Great -- thanks, Tim!
Comment 3 Tim Wickberg 2016-01-07 09:23:10 MST
(Correcting version fixed string.)
Comment 4 Tim Wickberg 2016-04-22 05:32:51 MDT
*** Ticket 2650 has been marked as a duplicate of this ticket. ***