a
This commit is contained in:
@@ -11,25 +11,24 @@ class Checkpoint:
|
||||
"""
|
||||
A snapshot of pipeline state on a timeline.
|
||||
|
||||
Stage outputs stored as JSONB — each stage serializes to JSON,
|
||||
the checkpoint stores it without knowing the shape.
|
||||
|
||||
parent_id forms a tree: multiple children from the same parent
|
||||
= different config tries from the same starting point.
|
||||
|
||||
Stage outputs are stored separately in StageOutput table,
|
||||
not carried in the checkpoint itself.
|
||||
"""
|
||||
|
||||
id: UUID
|
||||
timeline_id: UUID
|
||||
job_id: Optional[UUID] = None # which job created this checkpoint
|
||||
parent_id: Optional[UUID] = None # null = root checkpoint
|
||||
job_id: Optional[UUID] = None
|
||||
parent_id: Optional[UUID] = None
|
||||
|
||||
# Stage outputs — JSONB per stage, opaque to the checkpoint layer
|
||||
stage_outputs: Dict[str, Any] = field(default_factory=dict)
|
||||
stage_name: str = "" # which stage produced this checkpoint
|
||||
|
||||
# Config that produced this checkpoint
|
||||
config_overrides: Dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
# Pipeline state
|
||||
# Pipeline stats at this point
|
||||
stats: Dict[str, Any] = field(default_factory=dict)
|
||||
|
||||
# Scenario bookmark
|
||||
|
||||
Reference in New Issue
Block a user