kwongfuk/codex-skills/slurm-auto-retry-watchdog

Trust tier 3
  • community
Source check pending

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-watchdog

SKILL.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 sbatch script
  • waits for terminal state via sacct with squeue fallback
  • 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:

  • timeout
  • out_of_memory
  • node_failure
  • preempted
  • launch_failure
  • cuda_runtime

Default non-retriable classes are:

  • python_bug
  • import_env_bug
  • argument_bug
  • permission_bug

If the user wants different behavior, pass --retry-on explicitly.

Use

From the target repository root, run:

bash
python /home/gguo/.codex/skills/slurm-auto-retry-watchdog/scripts/slurm_watchdog.py \
slurm/run_some_job.sbatch \
--max-attempts 5

Useful flags:

  • --poll-seconds 30
  • --state-dir logs/slurm/watchdog
  • --retry-on timeout,out_of_memory,node_failure,preempted,launch_failure,cuda_runtime
  • --dry-run to inspect parsed #SBATCH metadata without submitting

Notes

  • This workflow resubmits the same sbatch script. 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 sbatch file 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/kwongfuk/codex-skills/slurm-auto-retry-watchdog/badge)](https://verified-skill.com/skills/kwongfuk/codex-skills/slurm-auto-retry-watchdog)

Something wrong with this skill or its page? Tell us.