Skip to content

Consolidate querying both running and history jobs in pbspro#9

Merged
mnakao merged 1 commit intoRIKEN-RCCS:mainfrom
imdxz:fix-pbspro
Jun 25, 2025
Merged

Consolidate querying both running and history jobs in pbspro#9
mnakao merged 1 commit intoRIKEN-RCCS:mainfrom
imdxz:fix-pbspro

Conversation

@imdxz
Copy link
Copy Markdown
Contributor

@imdxz imdxz commented Jun 24, 2025

qstat -x command supports querying both current running and history jobs.
However, PBS Pro scheduler has a job_history_duration setting to specify the length of time that PBS will keep each job's history and qstat -x can only query jobs within this duration.

If a history job is older than the set duration, it cannot be found from qstat -x. If that job is recorded in OpenComposer, and OpenComposer tries to query its state, an error would occur.

[dzhang01@sod-login01 composer]$ qstat -x
Job id            Name             User              Time Use S Queue
----------------  ---------------- ----------------  -------- - -----
282.sod-pbs       sleep            dzhang01          00:00:00 F workq
284.sod-pbs       sleep            dzhang01          00:00:00 R workq

[dzhang01@sod-login01 composer]$ qstat 256.sod-pbs
qstat: Unknown Job Id 256.sod-pbs

@mnakao mnakao merged commit 4ee6691 into RIKEN-RCCS:main Jun 25, 2025
@mnakao
Copy link
Copy Markdown
Contributor

mnakao commented Jun 25, 2025

Thank you for your PR. I think it will be fine.
I don't have a normal PBS Pro environment, so this is very helpful.

@imdxz
Copy link
Copy Markdown
Contributor Author

imdxz commented Jun 25, 2025

Thanks for merging.
I'm testing on NSCC Singapore's PBS Pro version 2024.1 and it works fine here.
We'll upgrade our PBS Pro to 2025.2 soon and also experiment with PBS Pro GraphQL API, I'll continue testing the integration. :)

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.

2 participants