Skip to content

feat(planner): schedule a check per match every morning - #21

Merged
TomSoulage merged 6 commits into
mainfrom
feat/planner
Nov 1, 2026
Merged

TomSoulage merged 6 commits into
mainfrom
feat/planner

Conversation

@TomSoulage

@TomSoulage TomSoulage commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
  • Every day at 10:00 (Paris time), the new planner Lambda reads the matches of the day through the Treize Mondial adapter and creates one EventBridge Scheduler one-time schedule per match. Each schedule invokes fetch-results with the match key and deletes itself once it has run.
  • A match is checked about 2 hours after kick-off, at 17:00 when the page gives no kick-off time, and never between 23:00 and 08:00, so no notification is sent at night.
  • Least privilege: planner may only create schedules in its own schedule group and pass Scheduler a role that can only invoke fetch-results. Both Scheduler roles are limited to this account.

For the reviewer:

  • A score that is not published yet when its match is checked is not looked up again. Rescheduling with growing delays and the retry limit (P3) follow in the next pull request.
  • Once merged, the pipeline runs end to end, so real Telegram messages go out every match day.
  • Deferred to DLQ and alarms #7: the DLQ and alarms must also cover the planner and the Scheduler targets. Until then, their failures only appear in the logs.

Part of #6

TomSoulage and others added 6 commits November 1, 2026 13:46
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@TomSoulage TomSoulage added feature New feature or improvement infra CDK, IAM and AWS resources app Lambda code: adapters, planner, fetch-results, notify labels Nov 1, 2026
@TomSoulage
TomSoulage merged commit 5c2d275 into main Nov 1, 2026
11 checks passed
@TomSoulage
TomSoulage deleted the feat/planner branch November 1, 2026 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app Lambda code: adapters, planner, fetch-results, notify feature New feature or improvement infra CDK, IAM and AWS resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant