Skip to content

Gate SLURM batch mode behind QUANTUI_ENABLE_SLURM - #105

Merged
jonathanschultzNU merged 1 commit into
mainfrom
cursor/slurm-enable-env-gate-12c1
Aug 30, 2026
Merged

Gate SLURM batch mode behind QUANTUI_ENABLE_SLURM#105
jonathanschultzNU merged 1 commit into
mainfrom
cursor/slurm-enable-env-gate-12c1

Conversation

@jonathanschultzNU

Copy link
Copy Markdown
Collaborator

Summary

Adds a site-level opt-in gate for SLURM batch mode so student deployments stay on the in-kernel Local backend by default.

  • QUANTUI_ENABLE_SLURM=1 (or true / yes / on) is required in addition to sbatch on PATH before the Settings dropdown, Cluster Jobs tab, or Run dispatch expose cluster mode.
  • Default (unset): students see only Local (this Jupyter kernel) — no extra launch command needed; omit the variable from the CPU .sif or JupyterHub student profile.
  • Operator testing: set QUANTUI_ENABLE_SLURM=1 in your shell, spawner profile, or test image.

Testing

pytest tests/test_app_slurm.py tests/test_backends_slurm.py -q -n0

33 passed.

Docs

  • docs/CLI.md — env var table
  • apptainer/slurm/README.md — operator variables
  • Planning runbook updated in the private tracking repo
Open in Web Open in Cursor 

SLURM batch stays hidden and undispatchable until an operator sets
QUANTUI_ENABLE_SLURM=1. Student CPU images can omit the variable with
no extra launch command; instructors opt in via image, spawner, or shell.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
@jonathanschultzNU
jonathanschultzNU marked this pull request as ready for review August 30, 2026 20:41
@jonathanschultzNU
jonathanschultzNU merged commit 5a90bbf into main Aug 30, 2026
5 checks passed
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