Skip to content

RFC: continue portable application checkpoints across compatible TES providers #101

Open

Description

@superbsky

Problem

SDK #131 resumes observation of an existing remote execution. WES #203 already discusses engine-owned rerun/resume. Neither is a portable description of an application checkpoint that another cooperating execution site can safely continue. Native Fusion snapshots demonstrate the value of surviving preemption, but have platform and hardware constraints.

Proposed scope

Create a bounded RFC and CPU-only demonstrator for application checkpoints. Start with a checkpoint-aware application, not transparent process or GPU migration.

A committed checkpoint receipt identifies its source execution and sequence, artifact digest/location, application format/version, executable and input identity, runtime compatibility requirements and retention/access conditions. The receipt becomes usable only after bytes and metadata are durably committed.

Continuation creates a linked execution attempt using a declared-compatible backend. A cooperating coordinator/backend must fence the source attempt or confirm it stopped before allowing one successor to commit results. Reuse the general execution-controller work where available; this issue owns checkpoint compatibility and transfer semantics, not another scheduler.

Checkpoint production and recovery operate without the SDK remaining connected. Capabilities distinguish application checkpoints, process snapshots and engine resume. Unsupported modes fail explicitly. Existing identity, placement and secret mechanisms apply to checkpoint data.

Acceptance criteria

  • A deterministic CPU application processes public fixed input and writes atomic checkpoints, including progress and RNG state where relevant. Interrupt it after a committed checkpoint and continue on a second compatible TES worker.
  • Its final output matches an uninterrupted run. Progress evidence shows completed work was not repeated from the beginning; record checkpoint I/O and repeated work.
  • Competing continuation requests preserve one authorized result-writer through a documented atomic ownership/fencing mechanism. An uncertain target submission remains unresolved unless provider-backed deduplication is available; it must not trigger a second blind launch. Observe process and result ownership, and distinguish exclusive result commit from exactly-once physical execution.
  • A partial artifact, wrong digest, changed input, incompatible application format or incompatible runtime is rejected before restoration.
  • A still-running source cannot commit conflicting results after ownership transfer. A backend without fencing reports the unsupported guarantee rather than claiming exactly-once computation.
  • Client disconnection does not disable checkpoint creation or valid continuation. The service enforces checkpoint expiry and access.
  • Existing TES/WES states remain intact. Reports distinguish preemption, checkpoint availability and each attempt's state.

Relationship to existing work

Link the experiment and findings to WES #203; do not open another general resume standard issue. SDK #131 remains observation resume. TES #121/WES #133 callback discussions remain separate. Use existing artifact publication capabilities rather than inventing a required DRS write endpoint.

Fusion is prior art, not a component to clone or a promise that its snapshots can migrate between providers. No GPU, CRIU implementation or Fusion license is needed for this initial application-level demo.

Primary sources: https://docs.seqera.io/fusion/guide/snapshots/ ; ga4gh/workflow-execution-service-schemas#203 ; https://ga4gh.github.io/task-execution-schemas/docs/ .

Coordinate the source stop or fencing action with the target admission contract. If the implementation can only confirm source termination, declare that narrower mode instead of promising atomic live migration.

Linked work

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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