Capture radar frames at the configured interval, not every other run (#208) #209
No reviewers
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
security
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot!209
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/radar-frame-cadence"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #208.
The bug
ALERT_RADAR_FRAME_INTERVAL_MINUTESis 5, but frames arrive every ten minutes. On dev, two Flood Watches collected 23 frames between 17:29Z and 21:05Z on 2026-10-13.The capture job is scheduled at the same period as the interval it enforces. A frame's
captured_atis stamped when it is stored, a second or two after its run began, so on the next run it is about 4m58s old. The gate read that as "younger than five minutes" and skipped it. Every alert was captured on alternate runs.The fix
_due_after()gives the age a frame must reach before another is captured: the interval less one minute of jitter allowance, with the allowance capped at half the interval. At the default setting a frame is due after four minutes, so a job running every five captures every run.The alert-time snapshot still behaves: it lands at an arbitrary moment, and a job run two minutes later does not add a second frame.
What changes in practice
Verification
🤖 Generated with Claude Code