Ticket 2314 - scontrol doesn't show dependency task IDs
Summary: scontrol doesn't show dependency task IDs
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: User Commands (show other tickets)
Version: 14.11.10
Hardware: Linux Linux
: 4 - Minor Issue
Assignee: Tim Wickberg
QA Contact:
URL:
: 2650 (view as ticket list)
Depends on:
Blocks:
 
Reported: 2016-01-06 23:34 MST by Phil Schwan
Modified: 2016-04-22 05:32 MDT (History)
1 user (show)

See Also:
Site: DownUnder GeoSolutions
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: 14.11.12 15.08.7 16.05.0-pre1
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 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. ***