SLURM Requeue Fails on Preemption in Cloud Environments
In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`.
In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command.
- Root cause
- In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`.
- Recommended fix
trap 'scontrol requeue ${SLURM_JOB_ID}; exit 15' 15- How Denpex helps
- Denpex matches SLURM Requeue Fails on Preemption in Cloud Environments across every rank in a distributed run and reports which rank failed first, so you act on the initiating node instead of the loudest one.
What this failure is
SLURM Requeue Fails on Preemption in Cloud Environments is a Job Scheduling failure seen during ML training runs. In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`. Common tags: Requeue Configuration.
Is this what broke your run? Paste your log.
You're reading about SLURM Requeue Fails on Preemption in Cloud Environments. Paste your own crash log or traceback below and get the real root cause for YOUR run, not this generic entry. No account, no card. Logs are masked at ingress and never saved to account history.
Want 14 days on the Scale plan?
Request an evaluation code. A verified workplace organization activates up to 50 diagnoses a day, alerts, history, and follow-up questions. No credit card or automatic subscription.
Why it happens (the mechanism)
The user explicitly set `--requeue` and expects a seamless restart, but the job is killed, leading them to believe the flag is broken.
What you'll observe
- Job state changes to CANCELLED instead of PENDING after preemption
- scontrol: error: requeue failed
Common symptoms and what they mean
| Symptom | Why it happens |
|---|---|
| Jobs submitted with `#SBATCH --requeue` are fully canceled when preempted instead of going back into the queue. | In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`. |
| Compute node is lost abruptly. | In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`. |
Which systems are affected
- SLURM
- AWS ParallelCluster
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Check `scontrol show config | grep JobRequeue`.
- ✓Verify `PreemptMode` setting in slurm.conf (needs to include REQUEUE).
- ✓Review slurmctld logs to see if the node was marked DOWN before the requeue could process.
The fix and the prevention pattern
The root cause is on this page and stays free. A free account adds the exact remediation steps, saved history, and the fix on every entry in the encyclopedia.
Sign up free. Unlock the full analysisNo credit card. Daily allowance follows verified trust tier. Instant access.
Diagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to see the initiating rank, collateral failures, exact fix, and verification command without uploading the log.
Install the free VS Code extensionSlurm GPU errors in context
Slurm GPU failures can occur before allocation, during cgroup creation or inside the workload. The hub joins job reason, GRES, memory, node-health and distributed-launch evidence.
Compare every slurm gpu error side by sideRoot cause
- In elastic cloud clusters (like AWS Spot instances), the compute node itself may be terminated by the cloud provider before SLURM's slurmctld can successfully execute the requeue command. Alternatively, `JobRequeue=1` is not set in `slurm.conf`.
The fix and how to prevent it
Evaluate Denpex on your own logs
Request a Scale evaluation code. A verified workplace organization activates 14 days with up to 50 diagnoses a day. Every account keeps its current diagnosis allowance and gets a verification path. No card or automatic subscription.
References
Don't just read the fix, diagnose your run
The encyclopedia tells you what went wrong. Denpex tells you what went wrong in YOUR training run. With your logs, your config, and your stack.