[BREAKING] Python: Refactor Checkpointing for runner and runner context (#1645)

* Refactor Checkpointing for runner and runner context

* exception

* Fix formatting

* Comments

* rename

* Add detailed doc string
This commit is contained in:
Tao Chen
2025-10-23 20:34:55 -07:00
committed by GitHub
Unverified
parent 3aa682082a
commit 31701dbb92
14 changed files with 280 additions and 281 deletions
@@ -196,7 +196,7 @@ def _render_checkpoint_summary(checkpoints: list["WorkflowCheckpoint"]) -> None:
for cp in sorted(checkpoints, key=lambda c: c.timestamp):
summary = get_checkpoint_summary(cp)
msg_count = sum(len(v) for v in cp.messages.values())
state_keys = sorted(cp.executor_states.keys())
state_keys = sorted(summary.executor_ids)
orig = cp.shared_state.get("original_input")
upper = cp.shared_state.get("upper_output")