TECHNOLOGY

Slurm afterok recovery: a later successful requeue does not revive every dependency

In this article
THE QUICK TAKE

Once a dependency fails because of a predecessor's terminal state, the documented path does not automatically revive it after the predecessor later succeeds.

A conversion job fails, preventing an afterok-dependent validation job from starting. The conversion is requeued and later succeeds, but the original validation still does not run. The operator expects dependency evaluation to forget its earlier failure. Slurm documents a different recovery boundary.

Preserve the original dependency decision

Record predecessor and dependent job identities, the submitted dependency expression and the earlier terminal state. The sbatch reference states that a dependency which failed because of a predecessor’s termination state does not automatically become runnable after that predecessor is requeued and has a different later outcome. A successful new execution therefore cannot be treated as proof that the old dependent job was released or that the full pipeline continued.

Read the success condition precisely

afterok concerns successful predecessor execution, while other dependency types express different conditions. Keep conjunctions and alternatives in the expression visible instead of summarizing them as a single dependency label. A scheduler success condition is also not a semantic artifact validation. The partition manifest guide explains why accepted output coverage needs input identities; a predecessor exiting successfully can still leave an incomplete or incompatible dataset if its own application checks were insufficient.

Check array scope before repairing

The array documentation distinguishes dependencies on the whole array and corresponding elements through aftercorr. Determine whether the failed prerequisite concerns a single partition or every element. Do not replace a whole-array requirement with a permissive element path just to unblock a consumer. Preserve stable array and element identities rather than inferring them from job ordering, since the documented ordering can change across requeues and other lifecycle events.

Make continuation an explicit decision

After validating the recovered predecessor’s artifacts, inspect the dependent’s current state and choose a supported update or a newly submitted continuation according to site policy. This is an application recovery step, not automatic revival promised by requeue. Prevent accidental duplicate downstream executions when another coordinator is also repairing the pipeline. The operation identity guide explains how logical work identity differs from another submission attempt and why an uncertain earlier effect needs independent evidence.

Test failure followed by success

In a disposable pipeline, create a predecessor that fails and a dependent with the intended expression. Preserve the dependency decision, then requeue the predecessor into a successful controlled outcome. Observe the original dependent before invoking the planned recovery procedure. Verify the eventual consumer reads the validated recovered artifact exactly under the declared application policy. This proposed exercise claims no completed scheduler test or universal command sequence across site-specific permissions and configuration.

Retain the complete lineage

Keep the failed decision, requeued execution and explicit downstream continuation in one incident record without erasing the earlier terminal outcome. Link artifacts to the execution that actually created them. The useful result is an auditable recovered pipeline whose scheduler and application acceptance agree. It does not establish automatic dependency repair, transparent rollback or correctness of every output merely because a later predecessor run became successful, nor does it authorize bypassing a failed prerequisite without validating its intended contribution.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles