Repository navigation
Automations: several times a day (random times or fixed interval) - #120
Merged
Merged
Conversation
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.
Automations can now run several times a day, like a heartbeat.
Random times – e.g. 5 times a day between 08:00 and 22:00. New schedule trigger field
runsPerWindow(2–24): the start window is split into equal parts and each part gets one random start, drawn per routine and part (same hash scheme as the existing start window, so restarts and edits keep the drawn times). Runs are spread across the day and never pile up. Stored ascron "0 8 * * *"+startWindowMinutes: 840+runsPerWindow: 5.Fixed interval – e.g. every 2 hours from 08:00 to 20:00 on weekdays. This is a plain cron step (
0 8-20/2 * * 1-5). The optional random start window still works on top.Changes
nextRandomStarttakesruns, the scheduler plans one job per part, validation (needs a start window, 10+ min per run, max 24), MCProutine_create/routine_updateschema + summary, agent prompt explains both optionsrunsPerWindowon the schedule trigger, max start window raised from 12 h to 24 h (still capped by the gap between runs)Tested: core tests (1611 pass; the only failure is the folders.test that already fails on main),
pnpm -r typecheck, and a sandbox run with screenshots of the list and the editor.