Skip to content

Slurm executor plugin 2.8.0 (removes the 5 s sleep per submission), numpy 2.4.5, pandas 2.3.3 - #357

Draft
mat10d wants to merge 1 commit into
mainfrom
slurm-plugin-2.8
Draft

mat10d wants to merge 1 commit into
mainfrom
slurm-plugin-2.8

Conversation

@mat10d

@mat10d mat10d commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

Why

snakemake-executor-plugin-slurm 2.6.0 calls time.sleep(5) before every sbatch, on a submit pool of two threads. A run therefore submits at most 24 jobs a minute whatever --jobs is set to. On a preprocess run with about 30 s conversion jobs, only about 15 jobs ran at once out of 400 allowed; with the sleep removed the same run held about 190 running jobs and went from about 20 to about 170 steps a minute.

The sleep is still in 2.6.1 and 2.7.0 and is gone from 2.7.1. Versions from 2.7.0 on require numpy>=2.4.5 and pandas>=2.3.3.

Changes

  • snakemake-executor-plugin-slurm 2.6.0 → 2.8.0, numpy 2.0.2 → 2.4.5, pandas 2.3.0 → 2.3.3. Every other pin resolves unchanged.
  • cellpose3 pinned to the commit that lifts its numpy<2.1 cap (Lift the numpy<2.1 cap (3.1.0.post1) cellpose3#1). This becomes the tag v3.1.0.post1 once that PR is merged and tagged; draft until then.
  • np.in1d was removed in numpy 2.4: the four uses (watershed segmentation, secondary objects, CellProfiler emulator) are now np.isin(...).ravel(), which returns the same flat mask.
  • Docs: the note on Slurm array jobs no longer says 2.6.0 is the pinned version.
  • Package version stays 1.5.1.

Checked

  • Dependency resolution for Python 3.12 with the new pins.
  • Cellpose masks on numpy 2.4.5 vs 2.0.2, same real tile: identical for nuclei, cyto3 (fixed and estimated diameter) and cpsam.
  • ruff format / ruff check.

Not yet checked

  • small_test on the new pins (this PR's CI) and the cluster-run gate with plugin 2.8.0, including job groups and whether array jobs now work.
  • goudacell vendors the phenotype library, so the two np.isin edits there need a re-sync after merge.
  • Installed dependencies that still call np.in1d on paths brieflow does not appear to use: microfilm (dataset.valid_frames), statsmodels.sandbox.

🤖 Generated with Claude Code

https://claude.ai/code/session_014tCDdE9SoDC2GYDAcHXhMP

snakemake-executor-plugin-slurm 2.6.0 sleeps 5 s before every sbatch on a
two-thread submit pool, so a run never submits more than 24 jobs a minute.
2.7.1 and later drop the sleep but need numpy>=2.4.5 and pandas>=2.3.3.

- Pin the plugin to 2.8.0, numpy to 2.4.5 and pandas to 2.3.3.
- Pin cellpose3 to the commit that lifts its numpy<2.1 cap.
- Replace np.in1d, removed in numpy 2.4, with np.isin.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014tCDdE9SoDC2GYDAcHXhMP
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.

1 participant