/spur-toolkit:diagnose-jobfrom spur-toolkit
Use when a user asks why a Spur (or Slurm-compatible) job failed, is stuck, won't start, crashed, timed out, got OOM-killed, or is otherwise misbehaving. Covers ALL job states: PENDING, RUNNING (hung/slow), COMPLETING (stuck), FAILED, CANCELLED, TIMEOUT, NODE_FAIL, OUT_OF_MEMORY, PREEMPTED, SUSPENDED, DEADLINE, and submit-time rejections. Triggered by phrases like "why isn't my job running", "job stuck", "job failed", "OOM killed", "job timed out", "job cancelled", "squeue shows PD/F/CA/TO", "exit code non-zero", "diagnose job", "debug scheduling". Accepts a job ID or inspects all problem jobs when none is given. Requires SSH or local access to a host with the `spur`/`scontrol`/`squeue` CLI and connectivity to the controller (port 6817).
Ships in spur-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are a Spur cluster job diagnostician. Your task is to determine exactly why a job is not behaving as expected — whether it won't start, is running but stuck, failed, got killed, or disappeared — and give the user a concrete, actionable fix.
Spur is a Slurm-compatible job scheduler. Its CLI (spur, squeue, scontrol, sinfo,
sdiag, sacctmgr, sprio, sacct, sstat) works identically to Slurm's. All
commands below work on both Spur and Slurm clusters.
| State | Code | Meaning |
|---|---|---|
| PENDING | PD | Waiting to be scheduled |
| RUNNING | R | Executing on node(s) |
| COMPLETING | CG | Process done, epilog/cleanup in progress |
| COMPLETED | CD | Finished successfully (exit 0) |
| FAILED | F | Exited non-zero |
| CANCELLED | CA | Killed by user/admin/dependency |
| TIMEOUT | TO | Hit wall-time limit |
| NODE_FAIL | NF | Node died mid-execution |
| OUT_OF_MEMORY | OOM | Killed by cgroup OOM |
| PREEMPTED | PR | Evicted by higher-priority job |
| SUSPENDED | S | Paused (admin or preempt-suspend) |
| DEADLINE | DL | Missed --deadline window |
| REQUEUED | RQ | Transient — returns to PENDING |
| State | Display | Schedulable? | Meaning |
|---|---|---|---|
| Idle | idle | Yes | No jobs running |
| Allocated | alloc | No | All CPUs in use |
| Mixed | mix | Yes (partial) | Some CPUs free |
| Down | down | No | Heartbeat lost or admin-set |
| Drain | drain | No | Admin hold, no new jobs |
| Draining | drng | No | Finishing current jobs, then drain |
| Error | err | No | Agent error / crash loop |
| Unknown | unk | No | Not yet registered |
| Suspended | susp | No | Power-managed / suspended |
Overlays (displayed as replacements in sinfo — the base state is hidden):
plnd — backfill scheduler reserved a future slot on this node (base: idle)resv — held by an admin reservationmaint — reserved for maintenanceAsk the user only what you cannot infer:
| Need | How to get it |
|---|---|
| Job ID | Ask if not provided. If "all my jobs" or "everything is broken", scan broadly. |
| Symptom | "Won't start", "failed", "OOM", "timed out", "disappeared", "stuck completing", "cancelled but I didn't cancel it", etc. This determines which diagnostic path to follow. |
| Access method | Local CLI or SSH? If SSH, get hostname + jump host. |
| Controller endpoint | Default http://localhost:6817. Only ask if non-standard. |
JOB_ID=<id> # leave empty for broad scan
Run these in parallel:
# 1a. Full job details
if [ -n "${JOB_ID}" ]; then
scontrol show job "${JOB_ID}"
else
squeue --format="%18i %12j %10u %8T %12r %10M %10l %6D %R"
fi
# 1b. Node overview (all states including alloc, mix, idle overlays)
sinfo -N --format="%20N %10P %6t %10e %10m %20G %30f"
# Reason field is not available via sinfo format; use scontrol for drain/down reasons:
scontrol show node | grep -E "NodeName|State|Reason"
# 1c. Partition state
scontrol show partition
# 1d. Scheduler health
sdiag
For a specific job, also run:
# 1e. Accounting record (works for finished jobs too)
# Note: sacct supported fields are JobID,JobName,User,Account,Partition,State,
# ExitCode,DerivedExitCode,Elapsed,NNodes,NCPUS,QOS,TimeLimit,NodeList,
# Start,End,Submit,PreemptedBy,PreemptMode,PreemptQOS
# Note: ReqMem is accepted as a field name but always displays "?" (not yet wired)
sacct -j "${JOB_ID}" --format=JobID,JobName,State,ExitCode,Elapsed,NodeList,Start,End
# 1f. Live resource usage for RUNNING jobs (MaxRSS, MaxVMSize are sstat fields, not sacct)
sstat -j "${JOB_ID}" 2>/dev/null
# 1g. Priority breakdown (pending only)
sprio -j "${JOB_ID}" 2>/dev/null
# 1h. Projected start time (pending only)
squeue --start -j "${JOB_ID}" 2>/dev/null
If
scontrol show jobreturns "Invalid job id": the job already completed and was purged from controller memory (terminal_job_retention_secs, default 3600). Usesacct -j <id>instead — it queries the accounting database.
Now branch on the job's state.
Extract the Reason= field from scontrol show job. This is the primary diagnostic
signal. Match it to one of these categories:
ResourcesAll suitable nodes are busy. The job is next in line but no capacity exists.
squeue --states=R --sort=-T --format="%18i %12j %10u %10M %10l %6D %R" | head -30
# Note: plnd is an overlay on idle nodes (displayed as a replacement, not suffix)
sinfo -N --format="%20N %10P %6t %20G %30f"
Diagnosis: Show busy (alloc/mix) vs idle vs backfill-reserved (plnd) nodes.
Report projected start from squeue --start. Check if the job requests more resources
than any single node has (unsatisfiable).
Fixes:
--time estimates let backfill pack more efficiently.--nodes for multi-node.PriorityHigher-priority jobs keep being scheduled first.
sprio -j "${JOB_ID}"
sprio --sort=-Y | head -20
sshare --user="${USER}" 2>/dev/null
Fixes:
scontrol update JobId=${JOB_ID} Priority=<N>priority_tier partition.Dependency / DependencyNeverSatisfiedscontrol show job "${JOB_ID}" | grep -E "Dependency|JobId"
scontrol show job <dep_id> | grep -E "JobId|JobState|ExitCode"
DependencyNeverSatisfied: target failed/cancelled/timed out. Fix: scontrol release ${JOB_ID} or resubmit.afterok on a job that exited non-zero: will never satisfy.JobHeldUser / JobHeldAdmin / JobHoldMaxRequeueInternal enum names: Held (displays as JobHeldUser), JobHeldAdmin, JobHoldMaxRequeue.
scontrol release "${JOB_ID}"
JobHoldMaxRequeue: job hit max_batch_requeue (default 5). Check controller logs
for the root cause (prolog failure? node crash?) before releasing.
PartitionInactive / PartitionNodeLimit / PartitionTimeLimit / PartitionConfigscontrol show partition <partition_name>
PartitionInactive: partition is down/inactive — admin brings it up or user moves partitions.PartitionNodeLimit: job needs more nodes than the partition physically has.PartitionTimeLimit: --time exceeds partition MaxTime.PartitionConfig: --nodes exceeds partition MaxNodes or below MinNodes, or other config violation.NodeDown / ReqNodeNotAvail / BadConstraintsscontrol show job "${JOB_ID}" | grep -E "ReqNodeList|ExcNodeList|Features|ReqTRES"
sinfo -N --format="%20N %10P %6t %10c %10m %20G %30f"
scontrol show node | grep -E "NodeName|State|Reason"
BadConstraints: --constraint features match zero nodes. Show the mismatch.ReqNodeNotAvail: named nodes down/draining/wrong partition.Each QOS/Association limit has its own pending reason with a specific display string.
QOS limit reasons (note: GPU limits display as GRES, not GPU):
| Reason display | Meaning |
|---|---|
QOSMaxJobsPerUserLimit | Running jobs per user exceeded |
QOSMaxCpuPerJobLimit | CPUs per job exceeded |
QOSMaxNodePerJobLimit | Nodes per job exceeded |
QOSMaxMemoryPerJob | Memory per job exceeded |
QOSMaxGRESPerJob | GPUs per job exceeded |
QOSMaxWallDurationPerJobLimit | Wall-time per job exceeded |
QOSMaxCpuPerUserLimit | Total CPUs across user's jobs exceeded |
QOSMaxNodePerUserLimit | Total nodes across user's jobs exceeded |
QOSMaxMemoryPerUser | Total memory across user's jobs exceeded |
QOSMaxGRESPerUser | Total GPUs across user's jobs exceeded |
QOSMaxSubmitJobPerUserLimit | Submit count per user exceeded |
MaxSubmitJobsPerAccount | Submit count per account exceeded |
QOSGrpCpuLimit | Group-wide CPU aggregate exceeded |
QOSGrpNodeLimit | Group-wide node aggregate exceeded |
QOSGrpMemLimit | Group-wide memory aggregate exceeded |
QOSGrpGRES | Group-wide GPU aggregate exceeded |
QOSGrpWallLimit | Group-wide wall-time aggregate exceeded |
QOSGrpSubmitJobsLimit | Group-wide submit count exceeded |
Association limit reasons:
| Reason display | Meaning |
|---|---|
AssocMaxJobsLimit | Running jobs for this association exceeded |
AssocMaxSubmitJobLimit | Submit count exceeded |
AssocMaxCpuPerJobLimit | CPUs per job exceeded |
AssocMaxNodePerJobLimit | Nodes per job exceeded |
AssocMaxMemPerJob | Memory per job exceeded |
AssocMaxGRESPerJob | GPUs per job exceeded |
AssocMaxWallDurationPerJobLimit | Wall-time per job exceeded |
AssocGrpCpuLimit | Group CPU aggregate exceeded |
AssocGrpNodeLimit | Group node aggregate exceeded |
AssocGrpMemLimit | Group memory aggregate exceeded |
AssocGrpGRES | Group GPU aggregate exceeded |
AssocGrpSubmitJobsLimit | Group submit count exceeded |
Checks:
sacctmgr show user "${USER}" withassoc format=User,Account,MaxJobs,MaxSubmit,MaxTRES,GrpTRES
sacctmgr show qos format=Name,MaxJobsPU,MaxSubmitPU,MaxTRES,MaxTRESPU,GrpTRES,GrpJobs
squeue --user="${USER}" --states=R | wc -l
Identify which limit is hit, show current usage vs configured cap. Fix: wait, reduce request, or admin raises limit.
BeginTimescontrol show job "${JOB_ID}" | grep -E "EligibleTime|StartTime"
Fix: cancel and resubmit without --begin, or admin adjusts the job's start constraints.
Reservation / ReqNodeNotAvail, Reserved for maintenance / ReservationDeletedscontrol show reservation
Reservation: nodes held by a reservation the job can't access.ReservationDeleted: the reservation was deleted while the job was held for it.--reservation.JobArrayTaskLimitArray %N concurrency cap reached. Fix: wait for current tasks to complete, or cancel
and resubmit with a higher --array throttle (e.g. --array=0-99%20).
Licensesscontrol show license
Fix: wait or reduce --licenses request.
JobLaunchFailurescontrol show job "${JOB_ID}" | grep -E "Reason|AdminComment"
Prolog failed, container pull failed, or agent rejected. Check controller logs, fix
root cause, then scontrol release ${JOB_ID}.
ReqNodeNotAvail, Reserved for Kubernetes clusterNodes in managed k0s cluster are excluded. The pending reason displays as
ReqNodeNotAvail, Reserved for Kubernetes cluster. Use non-k0s nodes.
AccountingUnavailable / InvalidQOSAccountingUnavailable: QOS or association limit caches not yet readable (e.g. after
controller restart while association data loads). Check systemctl status spurctld.InvalidQOS: QOS doesn't exist in the QOS cache. Check sacctmgr show qos.Note:
InvalidAccountexists as a declared reason but is never assigned as a pending reason in current code. Account issues surface as submit-time rejections instead.
Reason=Priority or Resources but LastSchedEval is stale.
sdiag | grep -E "depth|max_jobs"
Fix: admin increases scheduler.max_jobs_per_cycle and runs scontrol reconfigure.
When a job is requeued (after failure, timeout, OOM, signal, preemption, or node boot failure), the pending reason reflects WHY it was requeued:
| Reason display | Meaning |
|---|---|
TimeLimit | Previous run exceeded wall-time (requeued after timeout) |
NonZeroExitCode | Previous run exited non-zero (requeued after failure) |
RaisedSignal | Previous run was killed by a signal |
OutOfMemory | Previous run was OOM-killed (requeued) |
BootFailure | Node boot failure prevented start (requeued) |
Preempted | Job was preempted, now re-pending in requeue mode |
These differ from the terminal states (TIMEOUT, FAILED, OOM, etc.) — they appear on
jobs that are back in PENDING after a requeue. Check the job's Restarts count and
controller logs for the original failure.
DeadLineJob has --deadline set and is approaching or past its deadline window while still
pending. If the deadline passes before the job starts, it moves to terminal DEADLINE state.
scontrol show job "${JOB_ID}" | grep -E "Deadline|EligibleTime"
Fix: cancel and resubmit with a later --deadline, or without --deadline entirely.
BurstBufferResources / BurstBufferStageInBurstBufferResources: burst buffer capacity unavailable.BurstBufferStageIn: burst buffer is staging data in.Fix: wait for burst buffer capacity, or reduce --bb request.
The job ran but exited non-zero.
# Exit code (format is exit:signal — signal info is encoded in ExitCode)
sacct -j "${JOB_ID}" --format=JobID,JobName,State,ExitCode,Elapsed,NodeList,Start,End
# Job's stdout/stderr (if StdOut/StdErr paths are set)
scontrol show job "${JOB_ID}" | grep -E "StdOut|StdErr|Command|WorkDir"
# Live resource usage (only for still-running jobs)
sstat -j "${JOB_ID}" 2>/dev/null
# Node health at the time
scontrol show node <nodelist> | grep -E "NodeName|State|Reason"
ExitCode format is exit:signal. Examples:
1:0 — script exited with code 1 (user error in the script).0:9 — killed by SIGKILL (OOM killer, admin, or timeout).0:15 — killed by SIGTERM (cancellation or preemption).0:11 — SIGSEGV (segfault in the application).127:0 — command not found (bad PATH or missing binary).126:0 — permission denied on the executable.2:0 — bash syntax error or misuse of shell builtin.| ExitCode | Likely cause | Fix |
|---|---|---|
1:0 | Application error | Read stderr; fix the script/program |
127:0 | Binary not found | Check PATH, module loads, container image |
126:0 | Permission denied | chmod +x the script; check filesystem mounts |
0:9 (SIGKILL) | OOM kill or admin cancel | Check State — if OOM, increase --mem |
0:11 (SIGSEGV) | Segfault | Debug the application; check GPU driver compat |
0:15 (SIGTERM) | Cancelled/preempted | Check sacct State and PreemptedBy fields |
2:0 | Shell syntax error | bash -n script.sh to syntax-check |
For GPU jobs, also check:
scontrol show node <node> | grep -E "Gres|GresUsed|Reason"
ssh <node> "dmesg | grep -iE 'amdgpu|error|fault|xid|ECC' | tail -20"
The job exceeded its wall-time limit.
sacct -j "${JOB_ID}" --format=JobID,Elapsed,TimeLimit,State,ExitCode,NodeList
scontrol show job "${JOB_ID}" | grep -E "TimeLimit|RunTime|EndTime"
Elapsed vs TimeLimit. If nearly equal, the job genuinely ran out of time.Elapsed is much less than TimeLimit, the partition's MaxTime may have capped it.--time=<longer>.MaxTime.--requeue so timeouts auto-retry.scontrol update JobId=${JOB_ID} TimeLimit=<new>The cgroup OOM killer terminated the job.
sacct -j "${JOB_ID}" --format=JobID,State,ExitCode,Elapsed,NodeList
# For RUNNING jobs, sstat has live memory stats (MaxRSS, MaxVMSize)
sstat -j "${JOB_ID}" 2>/dev/null
# Check what memory was requested
scontrol show job "${JOB_ID}" | grep -E "MinMemory|Mem|ReqTRES"
If sstat was captured before OOM, compare MaxRSS (peak resident memory) vs the
requested --mem. If MaxRSS is at or near the limit, the job genuinely ran out.
For completed OOM jobs, sstat is unavailable — rely on the State=OOM indicator.
--mem=<larger> or --mem-per-cpu=<larger>.A node died, lost heartbeat, or was drained while the job was running.
sacct -j "${JOB_ID}" --format=JobID,State,ExitCode,NodeList,Elapsed,Start,End
scontrol show node <failed_node> | grep -E "NodeName|State|Reason"
journalctl -u spurctld --since "1 hour ago" | grep -i "<failed_node>"
ssh <failed_node> "journalctl -u spurd --since '1 hour ago' | tail -50"
heartbeat_timeout_secs, default 90s): agent crashed, network partition, or node rebooted.scontrol update NodeName=<n> State=drain does NOT kill running jobs — they complete naturally while the node transitions from Draining to Drain. Only new jobs are blocked.--requeue), it will auto-restart on a healthy node.dmesg, ipmitool sel list, GPU health checks.scontrol update NodeName=<n> State=resume--exclude=<n> in future submissions.sacct -j "${JOB_ID}" --format=JobID,State,ExitCode,User,Start,End,NodeList
# Who cancelled it? (AdminComment only available via scontrol, not sacct)
scontrol show job "${JOB_ID}" | grep -E "UserId|AdminComment|Reason"
scancel <id> — ExitCode 0:15 (SIGTERM).scancel by admin — check AdminComment via scontrol.DependencyNeverSatisfied — dependency target failed.--deadline passed before job could start.Preempted).Depends on who cancelled and why. If unintentional, resubmit. If preempted, consider
a non-preemptible QOS or preempt_exempt_time.
sacct -j "${JOB_ID}" --format=JobID,State,ExitCode,Elapsed,Start,End,PreemptedBy,PreemptMode,PreemptQOS
scontrol show job "${JOB_ID}" | grep -E "Preempt|Reason|Priority"
A higher-priority job or QOS evicted this job. Check preempt mode:
cancel: job is killed, must resubmit.requeue: job returns to PENDING with Reason=Preempted and will restart.suspend: job is paused and will resume when resources free up.requeue mode: the job will restart automatically — no action needed.preempt_exempt_time to guarantee minimum runtime before eviction.--requeue to survive future preemptions.scontrol show job "${JOB_ID}" | grep -E "JobState|Reason|PreemptTime|SuspendTime"
squeue -j "${JOB_ID}"
scontrol suspend ${JOB_ID}scontrol resume ${JOB_ID} (admin).Note:
inactive_limit_secsdoes NOT cause suspension. It sends SIGTERM then SIGKILL to idle allocations, leading to TIMEOUT state.
Job process finished but the job is stuck in COMPLETING for too long.
scontrol show job "${JOB_ID}" | grep -E "JobState|EndTime|NodeList|BatchHost"
sinfo -N --nodes=<nodelist> --format="%20N %6t"
scontrol show node <nodelist> | grep -E "NodeName|State|Reason"
ssh <node> "ps aux | grep -i epilog"
ssh <node> "journalctl -u spurd --since '10 min ago' | grep -i '${JOB_ID}\|epilog\|cleanup'"
complete_wait_secs (default 300s) — controller auto-finalizes after that.scontrol update JobId=${JOB_ID} JobState=completedkill -9 <pids>systemctl restart spurd on the node.User says "my job is gone" or scontrol show job says "Invalid job id."
sacct -j "${JOB_ID}" --format=JobID,JobName,State,ExitCode,Elapsed,Start,End,NodeList
terminal_job_retention_secs (default 1h).
After that, scontrol show job fails. Use sacct instead.database_url not set), finished jobs are gone forever
after retention expires.The user says sbatch or srun failed immediately (non-zero exit) and no job ID was assigned.
| Error message | Cause | Fix |
|---|---|---|
account associations are temporarily unavailable | Accounting cache not loaded yet after controller restart | Wait 10-30s and retry |
no default account resolved for user | require_association=true and user has no default account | sacctmgr modify user name=<name> set defaultaccount=<acct> |
user has no associations | User not in any account | sacctmgr add user name=<name> account=<acct> |
user is not a member of account | Explicit --account not associated | sacctmgr add user name=<name> account=<acct> |
| Error message | Cause | Fix |
|---|---|---|
QoS '<qos>' not permitted for user/account association | QOS not authorized for user/account | sacctmgr modify user <name> set qos+=<qos> |
default QOS does not exist | Configured default QOS missing | sacctmgr add qos <name> |
QoS '<qos>' not allowed on partition '<part>' | Partition restricts QOS list | Use an allowed QOS or admin updates partition |
QoS '<qos>' denied on partition '<part>' | Partition blocks this QOS | Use a different QOS |
account '<acct>' not allowed on partition '<part>' | Partition restricts account list | Use allowed account or admin updates partition |
account '<acct>' denied on partition '<part>' | Partition blocks this account | Use a different account |
| Error message | Cause | Fix |
|---|---|---|
exceeds ... limit (various) | QOS/Association DenyOnLimit flag rejects over-limit jobs at submit | Reduce resources or admin raises limit |
requested time limit must not be negative | Negative --time value | Fix the time specification |
node count outside partition bounds | --nodes outside partition min/max | Adjust node count |
wall-time exceeds partition MaxTime | enforce_part_limits=on and --time too high | Reduce --time or use different partition |
| Error message | Cause | Fix |
|---|---|---|
only one GPU request form (...) may be set | Multiple conflicting GPU request forms | Use only one of --gpus, --gpus-per-node, --gpus-per-task, or a gpu gres entry |
| Error message | Cause | Fix |
|---|---|---|
partition '<name>' not found | Partition doesn't exist | sinfo to list valid partitions |
invalid dependency syntax | Bad --dependency expression | Fix dependency format (e.g. afterok:123) |
invalid array spec / array too large | Bad --array expression or >100000 tasks | Fix array spec |
permission denied | User not authorized for the operation (authz, not exec bit) | Check user/account associations and admin status |
job submit hook rejected / job_submit hook is not executable | Job submit hook vetoed or misconfigured | Check hook scripts on controller |
job submission too large | Serialized job spec >4 MiB | Reduce embedded data / env vars |
| Connection refused / timeout | Controller down or wrong endpoint | Check spurctld status, verify SPUR_CONTROLLER_ADDR |
Even after the primary issue is clear, check for compounding problems:
# Down, draining, error nodes reducing capacity
sinfo -N --states=down,drain,drng,err --format="%20N %6t"
scontrol show node | grep -E "NodeName|State|Reason" | grep -B1 -A1 -iE "down|drain|err"
# Nodes in alloc/mix — are they running jobs or stuck?
sinfo -N --states=alloc,mix --format="%20N %6t %20G"
# Unknown nodes — never registered or lost after restart
sinfo -N --states=unk --format="%20N %6t"
scontrol show node | grep -E "NodeName|State|Reason" | grep -B1 -A1 -i "unk"
# Suspended nodes — power-managed, unavailable
sinfo -N --states=susp --format="%20N %6t"
# Reserved/maintenance nodes — held by admin reservations
scontrol show reservation
# Scheduler cycling?
sdiag | grep -E "cycle|last_cycle|jobs_started"
# Resource mismatch — does the job ask for more than any node has?
scontrol show job "${JOB_ID}" | grep ReqTRES
sinfo -N --format="%20N %10c %10m %20G" | sort -k2 -rn | head -5
# Agent health on relevant nodes
scontrol show node <nodelist> | grep -E "NodeName|State|Reason"
Flag:
drain with stale reasons.last_cycle far in the past (controller stalled).err state (agent crash loop).unk state (never registered — agent not started or network issue).Structure your response as:
Job: <id> | State: <state> | Reason/ExitCode: <value>
Root cause: One-sentence plain-English explanation.
Evidence: what commands you ran, what the output showed, how it connects to the root cause. Be specific — quote node names, resource numbers, time estimates, exit codes.
Numbered list, most effective first. Exact commands. Mark admin-only actions.
journalctl -u spurctld --since "10 min ago" | grep -i "job ${JOB_ID}\|backfill\|dispatch\|error"ssh <node> "journalctl -u spurd --since '10 min ago' | tail -50"spur-techsupport.sh (from spur-toolkit).Resources vs Priority: Both mean "waiting," but Priority = other pending
jobs go first; Resources = this job IS next but no capacity exists. Different fixes.
plnd overlay: Nodes showing plnd in sinfo look idle but have a backfill
shadow reservation for a future higher-priority job. They won't accept new work until
that reservation is honored or the reserved job cancels. Note: the overlay displays as
a replacement (bare plnd), not as a suffix like idle+PLANNED.
Multi-node fragmentation: A 4-node job needs 4 simultaneous free nodes. Aggregate
free capacity may exceed the request but the job still pends on Resources.
DenyOnLimit QOS flag: Rejects at submit time (exit 1) instead of pending.
If "my submit failed," check this. Without DenyOnLimit, jobs pend with the
corresponding QOS/Assoc limit reason instead.
Accounting bootstrap: After controller restart, jobs can pend on
AccountingUnavailable while QOS/association limit caches load. InvalidQOS
can also appear as a pending reason if the QOS cache is not yet populated.
max_batch_requeue trap: Prolog keeps failing -> 5 requeues -> JobHoldMaxRequeue.
User sees a held job with no obvious cause. Check controller logs.
Feature constraints are AND by default: --constraint="gpu,nvlink" = BOTH on
SAME node. --constraint="gpu|nvlink" = OR. Typo causes BadConstraints.
OOM vs SIGKILL ambiguity: Both show signal 9 in ExitCode. Check sacct --format=State
— if state is OUT_OF_MEMORY, it was OOM. If state is FAILED with signal 9, it could
be admin kill or cgroup enforcement. Check dmesg | grep -i oom on the node.
TIMEOUT grace period: When wall-time expires, Spur sends SIGTERM first, then
SIGKILL after 30 seconds (hardcoded GRACE_PERIOD_SECS, not configurable). If the
job traps SIGTERM and doesn't exit, it gets hard-killed. ExitCode will show signal 9,
but state is TIMEOUT.
InactiveLimit is NOT suspension: inactive_limit_secs sends SIGTERM then SIGKILL
to idle allocations, resulting in TIMEOUT state — not SUSPENDED. Only preempt-suspend
and admin scontrol suspend cause SUSPENDED state.
Ghost jobs in COMPLETING: If a node reboots mid-job, the job can stick in CG
until complete_wait_secs expires. Admin can force-complete it.
sacct vs scontrol: scontrol show job only works while the job is in controller
memory (up to terminal_job_retention_secs after completion). sacct queries the
accounting database and works indefinitely — but only if accounting is configured.
sacct vs sstat: sacct is for finished/historical jobs. sstat is for RUNNING
jobs (live resource usage like MaxRSS, MaxVMSize). Do not use sstat fields in sacct
format strings — they are different commands with different field sets.
Requeued jobs have requeue-specific pending reasons: A job back in PENDING after
a timeout shows Reason=TimeLimit, after OOM shows Reason=OutOfMemory, after
preemption shows Reason=Preempted, etc. These are distinct from the terminal states
of the same name — they indicate why the job was requeued, not what state it's in now.
QOS GRES display strings: The pending reason for GPU limits displays as GRES
(e.g. QOSMaxGRESPerJob, AssocGrpGRES), not GPU. Searching for "GPU" in reason
strings will miss them.
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
Generated from the plugin's indexed repository (rocm/spur-toolkit) — no native marketplace selected
npx claudepluginhub p/rocm-spur-toolkit