Skip to content

dolphin-maps loops: monthly week and weekly weekend schedules on the sweep function - #673

Merged
ejc3 merged 1 commit into
mainfrom
dolphin-maps-week-loops
Oct 25, 2026
Merged

ejc3 merged 1 commit into
mainfrom
dolphin-maps-week-loops

Conversation

@ejc3

@ejc3 ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Schedules for the two new dolphin-maps Lambda modes (dolphin-labs-hq/dolphin-maps PR #346, week and weekend; see its docs/design/weekday-traffic.md). Both read days of the week the Sunday sweep does not, into observations/gmaps_week.csv, which the fit does not read.

dolphin-maps-loop.tf: eight new aws_scheduler_schedule resources (dolphin_maps_loop_extra), all invoking the existing dolphin-maps-loop-sweep function (its role, its one-at-a-time concurrency, its failure alarm) through the existing scheduler role:

Schedule When (America/Los_Angeles) Event
dolphin-maps-loop-week-mon first Saturday of the month, 20:00 {"mode":"week","weekday":"mon"}
-week-tue / -wed / -thu / -fri / -sat same day, 20:20 / 20:40 / 21:00 / 21:20 / 21:40 {"mode":"week","weekday":X}
-week-sun same day, 22:00 {"mode":"week","weekday":"sun"}
dolphin-maps-loop-weekend Thursday 23:00 {"mode":"weekend"}
  • Cron uses SAT#1. A week pass is 18 jobs (one wave of Browserbase's 25 browsers) and a few minutes; 20 minutes apart means no two overlap. None overlaps the Sunday 23:00 sweep (the last one starts at 22:00 on Saturday), the Monday 00:00 refit, or the weekday-morning live loop; Thursday 23:00 has no other loop.
  • State follows dolphin_maps_loop_enabled (default false), so they are DISABLED like the other dolphin-maps schedules.
  • Header comment, the variable description and AGENTS.md's dolphin-maps loops entry say what the schedules are.
  • Not changed: alarms. A failed week or weekend pass counts as a failed sweep (same function); the sweep's not-running alarm is only created when the loops are enabled.
  • The new modes ship in the bundle from dolphin-maps' deploy-loop.yml once PR claude-master: a fifth subscription, claude-thao #346 merges there; invoking the sweep function with them before that fails with unknown mode, so enable the loops only after that deploy.

Checked: terraform fmt -check dolphin-maps-loop.tf; the cron expressions and inputs evaluated in a throwaway local Terraform config (the table above is its output). terraform validate/plan need providers and credentials, so the jumpbox does them on apply.

…ule on the sweep function

- dolphin-maps-loop.tf: eight more aws_scheduler_schedule resources
  (dolphin_maps_loop_extra) that invoke dolphin-maps-loop-sweep with the new
  Lambda modes from dolphin-maps: seven {"mode": "week", "weekday": X} on the
  first Saturday of the month (cron SAT#1), America/Los_Angeles, 20:00, 20:20,
  ... 22:00 (mon first), and {"mode": "weekend"} on Thursday 23:00. Same
  ENABLED/DISABLED switch as the other schedules (dolphin_maps_loop_enabled,
  default false), same scheduler role, no retries. None overlaps another, the
  Sunday 23:00 sweep or the weekday-morning live loop.
- Header comment and the variable description say what the new schedules are.
- AGENTS.md: the dolphin-maps loops entry mentions them.
@ejc3
ejc3 marked this pull request as ready for review October 25, 2026 13:12
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 04d3d4e2-0708-4f48-96a6-4f7cafa54fde
Commits

Reviewing files that changed from the base of the PR and between 3bfae30 and 7a3ddd4.

Files selected for processing: 2
  • AGENTS.md
  • dolphin-maps-loop.tf
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T13:13:46.366933Z 7a3ddd4 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-25T14:15:20.488316Z 7a3ddd4 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

@codex security review

ejc3 commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

@coderabbitai review
@greptileai review

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7a3ddd4c72

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@ejc3
ejc3 merged commit 4e69dad into main Oct 25, 2026
3 checks passed
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