Skip to content

automations: add background worker loop - #28617

Closed
eternal-openai wants to merge 1 commit into
codex/automations-08-run-now-dispatchfrom
codex/automations-09-worker-loop
Closed

eternal-openai wants to merge 1 commit into
codex/automations-08-run-now-dispatchfrom
codex/automations-09-worker-loop

Conversation

@eternal-openai

@eternal-openai eternal-openai commented Jun 16, 2026 •

Copy link
Copy Markdown
Contributor

Stack

  1. #28609 automations: add service groundwork and overview
  2. #28610 automations: add durable state store
  3. #28611 automations: add state CRUD and scheduling
  4. #28612 automations: add dispatch claims and leases
  5. #28613 automations: add app-server protocol
  6. #28614 automations: add app-server CRUD handlers
  7. #28615 automations: add agent automation_update tool
  8. #28616 automations: dispatch runNow requests
  9. This PR: automations: add background worker loop
  10. #28618 automations: dispatch scheduled heartbeats
  11. #28619 automations: add dispatch integration coverage
  12. #28620 automations: defer heartbeats for cooldown

Why

Automations need to fire without a client explicitly calling runNow. A small app-server worker can poll the durable state, claim due runs, and reuse the dispatch helper while preserving shutdown through the existing background-task path.

What Changed

  • Adds the automation worker loop and app-server startup wiring behind Feature::Automations.
  • Uses a per-process worker id for claim ownership.
  • Claims due automations from state and dispatches them through the shared automation dispatch helper.
  • Adds worker shutdown wiring through the existing processor background lifecycle.

Verification

  • Worker code is covered indirectly by the automation state claim tests and dispatch integration tests later in the stack.

@eternal-openai
eternal-openai force-pushed the codex/automations-08-run-now-dispatch branch from b3224f9 to a54b911 Compare June 17, 2026 00:14
@eternal-openai
eternal-openai force-pushed the codex/automations-09-worker-loop branch from f837b2f to 59e23dc Compare June 17, 2026 00:14
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Jul 1, 2026
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

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