Skip to content

ref(scheduler): Trim scheduler SQL storage contract#607

Merged
dcramer merged 1 commit into
mainfrom
ref/scheduler-schema-cleanup
Jun 16, 2026
Merged

ref(scheduler): Trim scheduler SQL storage contract#607
dcramer merged 1 commit into
mainfrom
ref/scheduler-schema-cleanup

Conversation

@dcramer

@dcramer dcramer commented Jun 15, 2026

Copy link
Copy Markdown
Member

Scheduler SQL storage now treats the JSON record as the canonical task/run state and keeps scalar columns only for lookup, due scans, and recovery. Because these scheduler migrations have not shipped yet, this rewrites the initial migration directly instead of layering a compatibility migration.

The active record shape drops scheduler-owned task versions, run task versions, and duplicate run idempotency keys while preserving tolerant parsing for older retained state. Verified with focused scheduler component/integration tests plus @sentry/junior and @sentry/junior-scheduler typechecks.

Keep scheduler task and run JSON records as the canonical durable state while limiting SQL columns to the projections used for lookup, due scans, and recovery. Remove scheduler-owned task versions, run task versions, and duplicate run idempotency keys from the active record shape.

Document the executionActor fallback as retained-state tolerance and update scheduler tests for the slimmer pre-release schema.

Co-Authored-By: GPT-5 Codex <codex@openai.com>
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 15, 2026 11:44pm

Request Review

@dcramer dcramer marked this pull request as ready for review June 15, 2026 23:44
@dcramer dcramer merged commit 1327c45 into main Jun 16, 2026
16 checks passed
@dcramer dcramer deleted the ref/scheduler-schema-cleanup branch June 16, 2026 00:08
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.

1 participant