Repository navigation
Make the schedule spread window overridable per schedule - #13122
Merged
Merged
Conversation
Extracts the spread window into a protected spreadWindow() seam. The default behavior is unchanged (_APP_FUNCTIONS_SCHEDULE_SPREAD applied to every schedule); platform subclasses can override it to scope or vary the window per schedule (e.g. by project or plan) without copying the enqueue loop. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
Greptile SummaryThe PR introduces a protected seam for selecting the function-schedule spread window while preserving the existing environment-based default.
Confidence Score: 5/5The PR appears safe to merge with no concrete blocking or non-blocking defects identified. The default implementation preserves the existing environment-derived spread window, and the offset and delay calculations remain unchanged aside from allowing deliberate per-schedule overrides. Important Files Changed
Reviews (1): Last reviewed commit: "Make the schedule spread window overrida..." | Re-trigger Greptile |
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
loks0n
approved these changes
Aug 6, 2026
5 tasks
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.
What does this PR do?
Follow-up to #13121. Extracts the schedule-spread window into a protected seam:
The default implementation is behavior-identical to #13121 —
_APP_FUNCTIONS_SCHEDULE_SPREAD(default0= off) applied to every schedule. Subclassing platforms can override the method to scope or vary the window per schedule — e.g. spread only certain projects or plan tiers — without having to copy the ~90-line enqueue loop, which was the only extension point before this.The call site consults the seam per current-tick schedule;
spreadOffset()and selection semantics are untouched.Test plan
spreadOffsettests unchanged and passing.🤖 Generated with Claude Code