Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "StartTimeStamp" output in SlurmInfo #38

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lcniel
Copy link
Contributor

@lcniel lcniel commented Feb 4, 2025

It is desireable for some purposes to have access to the exact, persistent timestamp that a job started on a machine which may not have access to Slurm or be aware of timezones, datetimeformats, and other configurable factors. The easiest way to achieve this is to simply compute the timestamp directly from "starttime" as this is fetched from scontrol show in SlurmInfo. This PR accomplishes this by adding the entry "starttimestamp".

(This is a feature we have been using for a while, it is important to some time-sensitive things like killing jobs, but I noticed that I hadn't pushed it upstream now when I added some new features.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant