Lifecycle of a Batch Job's Output: All-or-Nothing Publication

Lifecycle of a Batch Job's Output: All-or-Nothing Publication A lifecycle diagram generated by Archify. Job output Failure handling Terminal exits Writing Shards · tasks writing shards · Job output · output hidden 01 Writing Shards tasks writing shards output hidden Ready, Unpublished · all shards written · Job output · invisible 02 Ready, Unpublished all shards written invisible Published · consumers notified · Job output · serving queries 03 Published consumers notified serving queries Superseded · replaced by newer run · Job output · kept for rollback 04 Superseded replaced by newer run kept for rollback Task Failed · partial output deleted · Failure handling · retryable Task Failed partial output deleted retryable Discarded · deleted or never announced · Terminal exits · terminal Discarded deleted or never announced terminal task fails / preempted retry from input last task succeeds job-complete notification read-committed style reveal next scheduled run publishes job aborted Legend initial state waiting success failure / exit neutral final state