Restore automatic execution for Agent task schedules - #773
Merged
1 commit merged intoJul 23, 2026
Merged
Conversation
The Tasks UI still persists legacy AgentSchedule rows, while worker startup only launched the AgentTrigger daemon. Start the existing schedule consumer in the worker role, accept active Agent lifecycle states, and stop auto-migrating schedules during restart. Constraint: Tasks UI continues to write AgentSchedule in this targeted fix Rejected: Rely on one-time AgentSchedule migration | schedules created after service startup would remain unconsumed Confidence: high Scope-risk: narrow Directive: Keep timezone semantics out of this fix and address them in the scheduled-task refactor Tested: 18 focused scheduler/runtime tests; full backend suite with 1993 passing; Ruff on changed scheduler/tests; bash -n restart.sh Not-tested: 3010 deployment and real wall-clock timezone behavior
Y1fe1Zh0u
added a commit
that referenced
this pull request
Jul 22, 2026
The integration branch needs this pull request alongside the other v1.11.2 candidates without changing the original PR state. Constraint: Preserve the source PR commit and merge in numeric order. Confidence: high Scope-risk: moderate Related: #773 Tested: Git merge completed without unresolved conflicts Not-tested: Combined backend and frontend suites pending
40c1f6b
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AgentSchedulescheduler in worker processes alongside theAgentTriggerdaemoncreating,running, andidleAgentScheduletoAgentTriggermigration fromrestart.shRoot cause
The Agent Tasks UI still saves schedules as
AgentSchedule, but worker startup only launched the daemon that scansAgentTrigger. The legacy scheduler was never started, so newly-created Tasks schedules remained stored but had no consumer when they became due. A startup migration could not solve this for schedules created after the service had already started.Impact
Tasks created from the Agent Tasks page are consumed automatically again. The existing trigger subsystem remains unchanged, and stopped or expired Agents are still excluded from execution.
Timezone interpretation is intentionally not changed in this focused fix and will be handled separately.
Validation
18 passed1993 passedbash -n restart.shgit diff --checkNot tested