Interface CheckpointMetadata

interface CheckpointMetadata {
    source: "input" | "loop" | "update";
    step: number;
    writes: null | Record<string, unknown>;
}

Properties

Properties

source: "input" | "loop" | "update"

The source of the checkpoint.

  • "input": The checkpoint was created from an input to invoke/stream/batch.
  • "loop": The checkpoint was created from inside the pregel loop.
  • "update": The checkpoint was created from a manual state update.
step: number

The step number of the checkpoint. -1 for the first "input" checkpoint. 0 for the first "loop" checkpoint. ... for the nth checkpoint afterwards.

writes: null | Record<string, unknown>

The writes that were made between the previous checkpoint and this one. Mapping from node name to writes emitted by that node.