Skip to content

fix: resolve SLA deadline to T+1 for sensor-triggered daily pipelines#64

Merged
dwsmith1983 merged 3 commits intomainfrom
fix/sla-t1-daily-sensor
Mar 10, 2026
Merged

fix: resolve SLA deadline to T+1 for sensor-triggered daily pipelines#64
dwsmith1983 merged 3 commits intomainfrom
fix/sla-t1-daily-sensor

Conversation

@dwsmith1983
Copy link
Copy Markdown
Owner

Summary

  • False SLA warnings/breaches for sensor-triggered daily pipelinesscheduleSLAAlerts resolved the SLA deadline against today's date, but sensor-triggered daily pipelines run T+1 (data for today completes tomorrow). Between 00:00 UTC and the deadline hour, the breach time landed on the same day, causing premature alerts.
  • Shifts the date passed to handleSLACalculate by +1 day when the pipeline has no cron and uses a daily HH:MM deadline. Hourly (:MM) and cron-based pipelines are unaffected.

Sensor-triggered daily pipelines process today's data tomorrow, but
scheduleSLAAlerts resolved the SLA deadline against today's date. Between
00:00 and the deadline hour, the breach time landed on the same day
instead of the next day, causing false SLA warnings and breaches.

Shift the date passed to handleSLACalculate by +1 day when the pipeline
is sensor-triggered (no cron) with a daily deadline (HH:MM, not :MM).
@github-actions github-actions bot added tests Test changes lambda Lambda handlers docs Documentation labels Mar 10, 2026
9 subtests covering midnight window, after-deadline, pre-midnight,
month boundary, year boundary, leap year, non-leap year, and two
negative cases (cron daily and hourly sensor should not shift).
@dwsmith1983 dwsmith1983 merged commit f7fd273 into main Mar 10, 2026
6 checks passed
@dwsmith1983 dwsmith1983 deleted the fix/sla-t1-daily-sensor branch March 10, 2026 16:03
@dwsmith1983 dwsmith1983 self-assigned this Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation lambda Lambda handlers tests Test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant