[slurm-users] sacct --name --status filtering

Ryan Novosielski novosirj at rutgers.edu
Thu Jan 11 01:05:28 UTC 2024


All I can say is that this has to do with --starttime and that you have to read the manual really carefully about how they interact, including when you have --endtime set. It’s a bit fiddly and annoying, IMO, and I can never quite remember how it works.

--
#BlackLivesMatter
____
|| \\UTGERS,     |---------------------------*O*---------------------------
||_// the State  |         Ryan Novosielski - novosirj at rutgers.edu
|| \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus
||  \\    of NJ  | Office of Advanced Research Computing - MSB A555B, Newark
     `'

On Jan 10, 2024, at 19:39, Drucker, Daniel <DDRUCKER at MCLEAN.HARVARD.EDU> wrote:

What am I misunderstanding about how sacct filtering works here? I would have expected the second command to show the exact same results as the first.



[root at mickey ddrucker]# sacct --starttime $(date -d "7 days ago" +"%Y-%m-%d") -X --format JobID,JobName,State,Elapsed   --name zsh
JobID           JobName      State    Elapsed
------------ ---------- ---------- ----------
257713              zsh  COMPLETED   00:01:02
257714              zsh  COMPLETED   00:04:01
257715              zsh  COMPLETED   00:03:01
257716              zsh  COMPLETED   00:03:01

[root at mickey ddrucker]# sacct --starttime $(date -d "7 days ago" +"%Y-%m-%d") -X --format JobID,JobName,State,Elapsed   --name zsh --state COMPLETED
JobID           JobName      State    Elapsed
------------ ---------- ---------- ----------

[root at mickey ddrucker]# sinfo --version
slurm 21.08.8-2





--
Daniel M. Drucker, Ph.D.
Director of IT, MGB Imaging at Belmont
McLean Hospital, a Harvard Medical School Affiliate

The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline .

Please note that this e-mail is not secure (encrypted).  If you do not wish to continue communication over unencrypted e-mail, please notify the sender of this message immediately.  Continuing to send or respond to e-mail after receiving this message means you understand and accept this risk and wish to continue to communicate over unencrypted e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20240111/65e1fd9f/attachment-0001.htm>


More information about the slurm-users mailing list