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 investigates SLURM Requeue Fails on Preemption in Cloud Environments using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
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 traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
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.
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`.
The fix and how to prevent it
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 sideReferences
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.