Skip to content

Conversation

@tcutts
Copy link

@tcutts tcutts commented Nov 17, 2025

This patch adds support for the squeue --only-job-state option, which allows admins of recent SLURM versions to enable job state caching, and thereby reduce the RPC call load on SLURM. Because not all SLURM versions support this, and it does cause other filtering options (-p and -u) to be ignored, this has a new config parameter for the executor, onlyJobState, which defaults to "false" to stay the same as current nextflow behaviour.

I have written unit tests for the code, included in the PR, plus some docs for the users.

I have run the code on AstraZeneca's SLURM cluster, and it appears to behave correctly, at least for a very simple test workflow.

@tcutts tcutts requested a review from a team as a code owner November 17, 2025 20:48
@netlify
Copy link

netlify bot commented Nov 17, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 978fbd8
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6925a2cd3692b90008879954
😎 Deploy Preview https://deploy-preview-6579--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

tcutts and others added 2 commits November 17, 2025 20:50
Signed-off-by: tcutts <tim.cutts@astrazeneca.com>
Signed-off-by: tcutts <tim.cutts@astrazeneca.com>
@tcutts tcutts force-pushed the 6570-slurm-job-state-query branch from 9d7bb57 to 8bb86d0 Compare November 17, 2025 20:51
@pditommaso pditommaso requested review from jorgee and removed request for a team November 28, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accelerate SLURM job state queries with --only-job-state option to squeue

2 participants