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

view-job-records -j only takes numeric jobid #564

Closed
ryanday36 opened this issue Jan 24, 2025 · 0 comments · Fixed by #566
Closed

view-job-records -j only takes numeric jobid #564

ryanday36 opened this issue Jan 24, 2025 · 0 comments · Fixed by #566
Assignees
Labels
commands related to the flux-accounting commands/bindings

Comments

@ryanday36
Copy link
Contributor

I was trying to get info from flux account view-job-records for a specific older job, but couldn't find it until I realized that the -j flag only takes a numeric jobid:

[day36@elcap1007:elcap]$ flux account view-job-records -j fUaSBoDnmQK
UserID     Username   JobID                T_Submit             T_Run                T_Inactive           Nodes      Project              Bank                
[day36@elcap1007:elcap]$ flux job id -t dec fUaSBoDnmQK
204828478295360512
[day36@elcap1007:elcap]$ flux account view-job-records -j 204828478295360512
UserID     Username   JobID                T_Submit             T_Run                T_Inactive           Nodes      Project              Bank                
56676      stitt4     204828478295360512   1736117699.1254504   1736118385.5377223   1736119352.49785     8000       *                    guests              
[day36@elcap1007:elcap]$
@cmoussa1 cmoussa1 self-assigned this Jan 24, 2025
@cmoussa1 cmoussa1 added the commands related to the flux-accounting commands/bindings label Jan 24, 2025
cmoussa1 added a commit to cmoussa1/flux-accounting that referenced this issue Jan 25, 2025
As noted in flux-framework#564, viewing a job record with view-job-records --jobid
only accepts decimal formats of job IDs. However, Flux offers multiple
formats for Job IDs, and thus, the --jobid argument should also be able
to handle such formats.

Use the flux.job.JobID() class to convert any Flux job ID format to a
decimal format when looking up a job record in the flux-accounting
job-archive.
cmoussa1 added a commit to cmoussa1/flux-accounting that referenced this issue Jan 27, 2025
As noted in flux-framework#564, viewing a job record with view-job-records --jobid
only accepts decimal formats of job IDs. However, Flux offers multiple
formats for Job IDs, and thus, the --jobid argument should also be able
to handle such formats.

Use the flux.job.JobID() class to convert any Flux job ID format to a
decimal format when looking up a job record in the flux-accounting
job-archive.
@mergify mergify bot closed this as completed in #566 Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commands related to the flux-accounting commands/bindings
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants