-
Notifications
You must be signed in to change notification settings - Fork 120
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
Support for realtime statistics #347
Comments
Hi @conradtchan that is something I've been wanting to implement for quite some time. However, although it is fairly easy to fetch the statistics, the data type one is getting back is opaque. Which is itself not that dramatic, they have functions that can parse this data type to a known type (the same that is used under the hood for Of course we could just link with Anyway - I had a look at the slurm code again and it might also work without using their parser functions - its just a bit more work to get to the data we care about. Of course it would also be possible to wrap the I cannot promise anything, but when I have time again I will give it a shot and try to implement something. |
Thanks for the explanation! I understand the hesitation around linking with Appreciate you taking a look and thinking through the options. |
Hi @conradtchan I implemented this now, a working version of it is in this branch for Slurm 24.05. I just need to make a few more adjustments and tests + documentation before it is getting merged. |
Thank you for implementing this! I tested it out by cherrypicking that branch onto 23.11.x which is what we're currently running. Took me a little while to figure out that I had to do |
Glad it works :) |
I have reworked a few things, and will hopefully merge the changes soon to main |
Has now been merged into I will update the documentation shortly. |
Thank you for all of your help with this! |
We're interested in using PySlurm to gather realtime statistics on jobs, using the
TRESUsageInTot
andTRESUsageInAve
fields. These are available in the current database API (pyslurm.db.JobStatistics
) but those are only available after the job has finished.Is it currently possible or are there plans to get these in realtime? i.e. the equivalent of calling
sstat
vssacct
.Thanks!
The text was updated successfully, but these errors were encountered: