Skip to content

fix(align): spread hold time across windows - #6

Merged
ShawnKung merged 1 commit into
mainfrom
feat/align-smooth-hold
Sep 8, 2026
Merged

ShawnKung merged 1 commit into
mainfrom
feat/align-smooth-hold

Conversation

@ShawnKung

Copy link
Copy Markdown
Owner

Summary

  • Spread align hold time across reachable 5h windows instead of delaying only the final window.
  • Stabilize runtime decisions by deriving the current full-window start from the last successful ping.
  • Add regression coverage for daily midnight alignment producing smoother ping plans.

Test plan

  • go test ./...
  • temporary preview with CRON_TZ=Asia/Shanghai daily midnight target

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ShawnKung
ShawnKung merged commit 903f9e5 into main Sep 8, 2026
10 checks passed
@ShawnKung
ShawnKung deleted the feat/align-smooth-hold branch September 8, 2026 03:56
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