kwongfuk/codex-skills/slurm-auto-retry-watchdog
- community
Checking that the SKILL.md file is still in the repository.
Submit a Slurm sbatch job through a watchdog that monitors sacct/squeue, classifies common failures from job state and stdout/stderr logs, and automatically resubmits retriable failures up to a fixed attempt limit. Use when the user wants automatic retry for Slurm jobs, wants jobs to recover from timeout/OOM/node failures, or wants a reusable trigger/workflow around sbatch submission.
Install
npx vskill@latest install kwongfuk/codex-skills/slurm-auto-retry-watchdogSKILL.md
Slurm Auto Retry Watchdog
Use this skill when a Slurm job should be submitted through a monitored retry loop instead of a one-shot sbatch.
What it does
The bundled script:
- submits an
sbatchscript - waits for terminal state via
sacctwithsqueuefallback - resolves stdout/stderr log paths from
#SBATCH -o/-e - classifies failures from job state plus log text
- retries retriable categories up to
--max-attempts - writes a JSON report for all attempts
Retriable categories
Default retriable classes are:
timeoutout_of_memorynode_failurepreemptedlaunch_failurecuda_runtime
Default non-retriable classes are:
python_bugimport_env_bugargument_bugpermission_bug
If the user wants different behavior, pass --retry-on explicitly.
Use
From the target repository root, run:
Useful flags:
--poll-seconds 30--state-dir logs/slurm/watchdog--retry-on timeout,out_of_memory,node_failure,preempted,launch_failure,cuda_runtime--dry-runto inspect parsed#SBATCHmetadata without submitting
Notes
- This workflow resubmits the same
sbatchscript. It does not patch code automatically. - If a job repeatedly fails with a deterministic bug, the watchdog stops early and records the classified failure.
- If a script supports env overrides for batch size or model settings, add them in the
sbatchfile and then teach the watchdog to pass attempt-aware exports only when needed.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingglobal/slurm-auto-retry-watchdog/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 8
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kwongfuk/codex-skills/slurm-auto-retry-watchdog)