Skip to content

fix: continue scheduled perpetual drains after their cron slot - #6388

Merged
atomantic merged 1 commit into
mainfrom
cos/task-mtpwxnhc/agent-3ece96b6
Sep 6, 2026
Merged

fix: continue scheduled perpetual drains after their cron slot#6388
atomantic merged 1 commit into
mainfrom
cos/task-mtpwxnhc/agent-3ece96b6

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

Cron-scheduled perpetual tasks stopped after one successful run: completion refilled through ordinary due-task selection, which rejected the already-consumed cron slot. Carry the completed task type and app into scheduling so that drain can continue between cron slots.

Continuation still requires perpetual mode and respects existing enablement, park, failure, dependency, auto-run, deduplication, and work-detector gates. Other apps and task types retain normal scheduling.

Test plan

  • Server: taskSchedule.test.js, cos.test.js, cosTaskGenerator.test.js — 562 tests passed.
  • Regression coverage verifies continuation after a consumed cron slot, ordinary cron exclusion, and perpetual/failure parks.
  • Reviewed changes for reuse, eligibility gates, scope, and private-data leakage; git diff --check passed.

@atomantic
atomantic merged commit f9a230c into main Sep 6, 2026
7 checks passed
@atomantic
atomantic deleted the cos/task-mtpwxnhc/agent-3ece96b6 branch September 6, 2026 14:44
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