In this article
Measure publication overhead and uncommitted replay together, keeping accepted durable results distinct from attempted computation.
Computed output is not necessarily published progress
A batch inference job writes payload files and periodically publishes a completion manifest. An interruption after generation but before publication can make useful work replay on restart. Publishing every small result may reduce that window while increasing storage and coordination work. The economic question is which eligible cadence completes the accepted durable collection with an appropriate resource budget. It is not enough to count model outputs before verifying which results a new process can safely discover and reuse.
State the publication contract explicitly
Ray’s task fault-tolerance guide describes repeated task attempts, not automatic exactly-once publication of external effects. Amazon S3 conditional writes provides object-level write conditions; it does not create an application transaction over loose payloads and a manifest. Define stable item identities, payload integrity and the condition that makes a result discoverably complete. A successful upload without the required completion evidence must not receive the same status as an accepted published result.
Compare declared commit cadences
Use a finite authorized input collection, fixed model revision and acceptance checks. Run an uninterrupted control and bounded interruption fixtures at different publication stages. Compare candidate cadences with the same interruption schedule, keeping payload and result semantics constant. Preserve generated, uploaded, published and accepted identities separately. Do not let a larger commit group silently change which items are allowed to disappear after failure. Cadence should alter resource tradeoffs, not the definition of delivered durability.
Include writes, replay and recovery
Measure model work, payload writes, manifest operations, verification and restart preparation through final reconciliation. Record uncommitted work that is reused safely as well as work repeated. A repeated attempt that overwrites the same logical result is still additional computation even if final output count remains correct. Conversely, counting both attempts as delivered results inflates throughput. Retain failed conditional publication and its handling; an object-store conflict is an observable event requiring resolution, not proof that the intended result became the accepted manifest entry.
Test interruption between payload and manifest
Stop an isolated fixture after payload completion and before publication, then restart from durable state only. Verify missing-result selection, partial files and duplicate attempts. Include an interruption during publication and a corrupted payload rejected by validation. Preserve what the new process actually reads rather than relying on memory of the old worker. A favorable no-failure run cannot establish recovery overhead, and an arbitrary assumed interruption frequency is a scenario parameter rather than observed infrastructure reliability.
Publish the cadence’s supported envelope
Save item identities, publication events, fixture schedule and reconciled accepted outputs alongside resources. Spot restart preparation explains independent progress storage; capacity reporting supports useful-work units. This article adds the cadence tradeoff between publication overhead and replay exposure. It does not claim universal exactly-once execution, an optimal commit interval or a provider price advantage. The supported conclusion concerns complete accepted durable output under the tested failure stages and resource boundary.
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.