scheduling: scheduler durable object, /remind, automations - #13
Merged
Merged
Conversation
Preview DeployedURL: https://lynn-lynn-pr-13-gej5zaoqllpq5oze.amitavnott.workers.dev Built from commit 7a001c8 This comment updates automatically with each push. |
abfibonacci4
self-requested a review
August 26, 2026 03:02
abfibonacci4
approved these changes
Aug 26, 2026
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.
Summary
Adds a scheduling primitive for lynn, built in phases (design doc tracked locally in .thoughts/scheduler.md):
src/schedule/spec.ts): one-shot, daily, and weekly schedule values with a branded default zone (America/New_York)src/schedule/next-run.ts): strictly-after semantics, DST gap and overlap handling via Intl offsetssrc/schedule/scheduler.ts): job registry backed by SQLite storage, alarm-driven firing, task dispatch by payload type, automation reconcile on bootCommand.executenow returnsPromise<CommandResult>end to end/remindcommand withat/every/list/cancelsubcommands, plus mention-path parsing and a natural-language time parser (in 30 minutes,tomorrow 9am,monday 10am,2026-09-01 14:30)src/discord/automations/index.ts): statically declared reminders reconciled into the DO on boot; ships an inert standup example until a channel id is configuredVerification
Notes
Follow-ups
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.