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 4069f66
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/691f0c45bd44ce0008eb7fbd
😎 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 tcutts force-pushed the 6570-slurm-job-state-query branch from 9d7bb57 to 8bb86d0 Compare November 17, 2025 20:51
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.

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

1 participant