Skip to content

Record completed_at for ContinuedAsNew executions - #32

Draft
Thom Chiovoloni (thomcc-work) wants to merge 1 commit into
mainfrom
thomcc/continue_as_new_completed_at
Draft

Thom Chiovoloni (thomcc-work) wants to merge 1 commit into
mainfrom
thomcc/continue_as_new_completed_at

Conversation

@thomcc-work

@thomcc-work Thom Chiovoloni (thomcc-work) commented Oct 5, 2026 •

Copy link
Copy Markdown

It seems like an oversight that this was missed, but maybe I'm mistaken. This is required for us to properly clean up executions in old (but still-running) workflows.

This PR is still WIP, not thoroughly tested or manually reviewed in depth yet.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The production data backfill and replacement of a critical acknowledgement function warrant the planned manual testing and human review.

Review effort: Balanced
Findings: None

What changed in this PR

Records completion timestamps for continued-as-new executions, enabling age-based pruning of older generations.

Changes:

  • Updates acknowledgement logic and backfills recoverable timestamps.
  • Adds regression coverage for migration and pruning behavior.
  • Documents migration behavior and operational guidance.
File Description
migrations/​0024_continue_as_new_completed_at.sql Updates and backfills completion timestamps.
migrations/​0024_diff.md Documents the migration delta.
migrations/​README.md Adds upgrade and pruning guidance.
src/​migrations.rs Refreshes the migration embedding marker.
tests/​regression_tests.rs Tests fresh installs, upgrades, and pruning.
CHANGELOG.md Records the fix under Unreleased.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants