slurm-auto-retry-watchdog
CommunityAuto-retry Slurm jobs on retriable failures.
AuthorKwongFuk
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Submitting Slurm jobs often requires manual monitoring and retries. This skill provides an automated watchdog that submits an sbatch script, monitors terminal state using sacct and squeue, classifies common failures from job state and log output, and automatically resubmits retriable failures up to a fixed attempt limit.
Core Features & Use Cases
- Monitors Slurm job status via sacct and squeue to determine when a job completes or fails.
- Classifies failures from exit codes, stdout, and stderr to separate retriable vs non-retriable conditions.
- Automatically retries retriable failures up to a configurable maximum, and records a detailed JSON report per attempt.
- Useful for long-running batch workflows that need to recover from timeouts, OOMs, node failures, or preemption without manual intervention.
Quick Start
From the project root, run the watchdog against your sbatch script to automatically retry retriable failures with a configurable max-attempts.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: slurm-auto-retry-watchdog Download link: https://github.com/KwongFuk/codex-skills/archive/main.zip#slurm-auto-retry-watchdog Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.