Skip to content

Recorder: checkpointed finalization and recovery for interrupted long-running post-processing #35

@mark-e-deyoung

Description

@mark-e-deyoung

Summary

Implement checkpointed/fault-tolerant recorder finalization so long-running post-processing can resume after interruption.

Problem

Recorder finalization currently runs as a one-shot chain (events load/adjust, subtitles generation, concat, mux). If interrupted, reruns may repeat expensive work and can leave partially generated artifacts.

Scope

  • Add explicit phase checkpoints for finalization stages.
  • Persist checkpoint state in session metadata.
  • Add recovery command/API path that resumes from last completed phase.
  • Ensure idempotent behavior for repeated recovery attempts.
  • Emit operation progress/heartbeat per phase.

Acceptance Criteria

  • Interruption during finalization can be resumed without restarting from scratch.
  • Recovery operation is idempotent.
  • Progress is visible through operation status endpoints.
  • Tests cover interruption/recovery path and phase idempotency.

Notes

Deferred from temporal-correctness Wave 1 implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions