Skip to content
This repository was archived by the owner on May 10, 2026. It is now read-only.

feat: add tick runner and region reset clock - #232

Merged
ggmolly merged 2 commits into
mainfrom
feat/scheduler-foundation-reset
Feb 22, 2026
Merged

feat: add tick runner and region reset clock#232
ggmolly merged 2 commits into
mainfrom
feat/scheduler-foundation-reset

Conversation

@ggmolly

@ggmolly ggmolly commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a scheduler foundation with a reusable periodic tick runner for background systems.
  • Adds a region-aware reset clock that computes daily, weekly, and monthly reset boundaries in UTC.
  • Provides reset helpers for current region resolution and month key derivation for timed systems.

Changes

  • Introduced internal/scheduler/runner.go with Runner, configurable tick interval, and per-tick job dispatch.
  • Introduced internal/scheduler/reset_clock.go with region-based reset calculations for CN/EN/JP/KR/TW.
  • Added focused unit coverage in internal/scheduler/runner_test.go and internal/scheduler/reset_clock_test.go.

@ggmolly ggmolly added type/feature New capability status/needs-review Ready for review complexity/sm Small complexity and removed status/needs-review Ready for review complexity/sm Small complexity labels Feb 22, 2026
@ggmolly
ggmolly merged commit 2af8e1e into main Feb 22, 2026
1 check passed
@ggmolly
ggmolly deleted the feat/scheduler-foundation-reset branch February 22, 2026 13:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type/feature New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant