Ticket 9564

Summary: squeue: request that pending jobs without start times be sorted after pending jobs with start times, not before
Product: Slurm Reporter: Luke Yeager <lyeager>
Component: User CommandsAssignee: Director of Support <support>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: --- CC: CPonder, fabecassis, tim
Version: 20.02.4   
Hardware: Linux   
OS: Linux   
Site: NVIDIA (PSLA) 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: 20.11
Target Release: --- DevPrio: ---
Emory-Cloud Sites: ---

Description Luke Yeager 2020-08-11 13:43:24 MDT
$ sbatch --wrap=hostname --begin='now+1hour'
    Submitted batch job 33955
    $ sbatch --wrap=hostname --hold
    Submitted batch job 33956

    $ squeue -t PD -a -S +S -O jobid:8,starttime:21
    JOBID   START_TIME
    33956   N/A
    33955   2020-08-11T13:25:52

I think it would be more logical if jobs without a scheduled start time were sorted as if they are expected to start AFTER jobs with a scheduled start time, rather than before.
Comment 2 Luke Yeager 2020-08-12 09:28:05 MDT
This bug seems to be private by default? Why? Also, I can't seem to change the visibility of the bug. Why not - am I not in the right group?
Comment 3 Luke Yeager 2020-08-12 09:38:45 MDT
I've changed my email to use my corporate one. But it looks like I'm not in the right group because I still can't make bug 9569 public. Can you make sure I'm in the right group? Thanks.
Comment 4 Carl Ponder 2020-08-12 09:43:28 MDT
I have access to the bug now. I'm not sure how it got enabled.
Comment 5 Jason Booth 2020-08-12 09:50:12 MDT
Hi Luke 

I will have Colby work with you on this issue going forward.

>This bug seems to be private by default? Why? Also, I can't seem to change the visibility of the bug. Why not - am I not in the right group?

That was my fault. In our last conversation with Nvidia, we talked about having a security group for your site's bugs. I have removed the security group from the other bug.

>I've changed my email to use my corporate one. But it looks like I'm not in the right group because I still can't make bug 9569 public. Can you make sure I'm in the right group? Thanks.

This was discussed in email and on our last call briefly. The security groups have to have users added manually so when you create a new account then I or one of the other admins will need to go in and flag that user as part of Nvidia's security group. Michael Knox can also do this since that contact is the primary contact and also has the privileges to add or remove users via Bugzilla for Nvidia.
Comment 6 Colby Ashley 2020-08-12 10:07:03 MDT
Hey Luke,

Now that security stuff got figured out. Lemme dig through the code and whats goin on. 

~Colby
Comment 10 Colby Ashley 2020-09-30 17:20:38 MDT
Update:
Currently debugging the logic on moving zero to the bottom.
Comment 15 Colby Ashley 2020-10-22 10:56:48 MDT
With commit https://github.com/SchedMD/slurm/commit/b8737e53e41e19dd926f03f41f7e13b8a139f9ee

N/A now appears after jobs with start times when sorting by start time in all situations.


brian@lappy:~/slurm/master/lappy$ squeue -t PD -a -S +S -O jobid:8,starttime:21
JOBID   START_TIME
45875   2020-10-21T13:43:31
45865   2020-10-21T14:02:19
45876   N/A
45877   N/A

brian@lappy:~/slurm/master/lappy$ squeue -t PD -a -S -S -O jobid:8,starttime:21
JOBID   START_TIME
45865   2020-10-21T14:02:19
45875   2020-10-21T13:43:31
45876   N/A
45877   N/A

~Colby
Comment 16 Luke Yeager 2020-12-18 15:45:36 MST
Verified in 20.11.2 - thanks!