Skip to content

Decouple scheduler scan from execution dispatch#124

Merged
charlesrhoward merged 1 commit intomainfrom
codex/issue-114-decouple-scheduler-dispatch
Feb 16, 2026
Merged

Decouple scheduler scan from execution dispatch#124
charlesrhoward merged 1 commit intomainfrom
codex/issue-114-decouple-scheduler-dispatch

Conversation

@charlesrhoward
Copy link
Copy Markdown
Contributor

@charlesrhoward charlesrhoward commented Feb 16, 2026

Summary\n- collect due scheduler tasks first during each tick\n- dispatch due tasks without awaiting each task serially\n- keep per-task error logging for asynchronous dispatch failures\n\nCloses #114


Note

Medium Risk
Changes scheduler execution semantics from serial to concurrent dispatch, which can alter timing and increase parallel load; errors are now handled asynchronously and rely on logging for visibility.

Overview
During each schedulerTick, the scheduler now collects due tasks first and then dispatches runTask(..., 'cron') asynchronously (fire-and-forget) rather than awaiting each run inline.

Async dispatch failures are now caught per task and logged via scheduler.tick.run_task_failed, allowing the tick to complete quickly while still surfacing per-task errors.

Written by Cursor Bugbot for commit 6837fe6. This will update automatically on new commits. Configure here.

@vercel
Copy link
Copy Markdown

vercel bot commented Feb 16, 2026

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

Project Deployment Actions Updated (UTC)
agent-space-web Ready Ready Preview, Comment Feb 16, 2026 1:08pm

Request Review

@charlesrhoward charlesrhoward enabled auto-merge (squash) February 16, 2026 13:07
@charlesrhoward charlesrhoward merged commit d988a6e into main Feb 16, 2026
7 checks passed
@charlesrhoward charlesrhoward deleted the codex/issue-114-decouple-scheduler-dispatch branch February 16, 2026 13:09
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