Skip to content

feat(scheduler,oauth-setup): Phase 3F — Scheduler + OAuth bootstrap helper - #11

Merged
smallchungus merged 5 commits into
mainfrom
phase-3f-scheduler-oauth
Apr 18, 2026
Merged

feat(scheduler,oauth-setup): Phase 3F — Scheduler + OAuth bootstrap helper#11
smallchungus merged 5 commits into
mainfrom
phase-3f-scheduler-oauth

Conversation

@smallchungus

Copy link
Copy Markdown
Owner

Phase 3F closes Phase 3.

  • internal/scheduler — Scheduler.PollOnce iterates users; on first sync seeds cursor from Users.GetProfile (forward-sync only, no backfill); on subsequent polls calls gmail.LatestMessageIDs and enqueues fetch jobs.
  • New store methods: ListUsers, GetGmailSyncState, SetGmailSyncState (UPSERT).
  • cmd/scheduler — 5 min poll loop, signal-handled graceful shutdown.
  • cmd/oauth-setup — interactive helper that walks the Google OAuth dance once, listens on http://localhost:8888/callback, exchanges the code, encrypts and saves the token. Auto-creates the user row if needed.
  • README: Real Gmail->Drive setup walkthrough.

Phase 3 milestone: the full Gmail -> PDF -> Drive pipeline runs end-to-end with a real Google account.

@smallchungus
smallchungus merged commit 14b7648 into main Apr 18, 2026
3 checks passed
@smallchungus
smallchungus deleted the phase-3f-scheduler-oauth branch April 18, 2026 13: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