Repository navigation
Add watcloud slurm run, with interactive and batch modes - #29
Open
GavinDPinto wants to merge 4 commits into
Open
GavinDPinto wants to merge 4 commits into
GavinDPinto wants to merge 4 commits into
Conversation
GavinDPinto
force-pushed
the
slurm-run-command
branch
from
October 17, 2026 05:40
0b8e8e9 to
3c45ff9
Compare
Users say what they need (--cpus, --mem, --disk, --gpu-mem/--gpus, --time) and it composes and runs the srun line. --docker starts dockerd inside the job before the shell or command runs. Scratch disk can only be set at submission, and the 100 MiB default makes image pulls fail, so --docker defaults it to 20 GiB and sizes require a unit. Requests no node could ever run are rejected using sinfo. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--batch submits the command or script after -- with sbatch instead of running it with srun, reusing the same flags and cluster checks. It prints the job ID, the output file, and how to get notified when the job ends. A script file is passed to sbatch directly so its #SBATCH lines still apply; a command goes through --wrap, as does a script with --docker. Batch jobs may use compute_dense and skip the interactive 6-hour warning, but need --time, since a job killed at the 30-minute default has nobody watching it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GavinDPinto
force-pushed
the
slurm-run-command
branch
from
November 2, 2026 18:29
3c45ff9 to
789e0a8
Compare
… silently When the controller was down, sinfo retried for about 30 s, and slurm run then skipped its node checks without saying so. sinfo now gets 5 s, and when it fails, times out or lists no nodes, slurm run prints a warning naming the reason before the srun or sbatch line. Found by the use-case run during the 9 Nov outage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
|
The above doc has some information on the common use-cases for the command as well as some incorrect usage and the associated error messages outputted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #30. Closes #31. Part of #22.
watcloud slurm runbuilds the Slurm request from plain flags, prints it, and runs it.What it does
srun/sbatch:--cpus,--mem,--disk(tmpdisk),--gpu-mem(shard),--gpus/--gpu-type,--time,--partition.--dry-runprints the command instead.--dockerstarts dockerd in the job and setsDOCKER_HOST. It defaults--diskto 20 GiB instead of the silent 100 MiB.--batchsubmits withsbatch: a command through--wrap, or a script file whose#SBATCHlines still apply. It allowscompute_dense, requires--time, and prints the job ID, output file and awatcloud subscriptionhint.sinfo).job_submit.luaare applied up front: no interactive jobs oncompute_dense, a warning past 6 h.watcloud docker start -hnow points toslurm run --docker.Testing
internal/slurm: parsing, thesrun/sbatchlines, node checks against realsinfooutput, and thesinfotimeout.srun's 100 MiB default and works with--docker.sbatch.🤖 Generated with Claude Code