Skip to content

fix: sensor trigger deadline and docs update#62

Merged
dwsmith1983 merged 5 commits intomainfrom
fix/sensor-sla-deadline
Mar 9, 2026
Merged

fix: sensor trigger deadline and docs update#62
dwsmith1983 merged 5 commits intomainfrom
fix/sensor-sla-deadline

Conversation

@dwsmith1983
Copy link
Copy Markdown
Owner

Summary

  • Sensor-triggered pipelines now receive proactive SLA scheduling (removed cron-only guard that silently skipped them)
  • Configurable trigger.deadline field (:MM or HH:MM) defines when the auto-trigger window closes — after expiry, the watchdog writes FAILED_FINAL and publishes SENSOR_DEADLINE_EXPIRED
  • Manual restart via RERUN_REQUEST still works after deadline expiry
  • TOCTOU-safe conditional write (CreateTriggerIfAbsent) prevents race between trigger acquisition and deadline enforcement
  • Trigger deadline check runs as an independent watchdog scan, decoupled from SLA scheduling
  • Docs: changelog, alerting reference, Terraform variables, architecture, and README updated for v0.7.2 changes

Add CloudWatch alarms, Secrets Manager integration, Lambda
concurrency limits, env-var scoping, and lambda trigger type
to CHANGELOG, README, and Hugo docs (terraform, alerting, aws
architecture). Add 6 missing event types to alerting reference.
Fix stale "Build 4 Lambda handlers" count.
TriggerCondition gains a Deadline field (":MM" or "HH:MM") controlling
when the auto-trigger window closes for sensor-triggered pipelines.
New EventSensorDeadlineExpired event type for observability.
Uses DynamoDB ConditionExpression attribute_not_exists(PK) to prevent
overwriting a trigger row that was acquired between the read and write.
Remove cron-only SLA guard so sensor-triggered pipelines get proactive
SLA scheduling. Add checkTriggerDeadlines scan that writes FAILED_FINAL
and publishes SENSOR_DEADLINE_EXPIRED when the trigger window expires
without the pipeline starting. Manual restart via RERUN_REQUEST still
works. Includes 5 tests covering hourly/daily deadlines, skip-if-exists,
and not-yet-expired scenarios.
@github-actions github-actions bot added tests Test changes lambda Lambda handlers docs Documentation types Public types (pkg/types) labels Mar 9, 2026
@dwsmith1983 dwsmith1983 self-assigned this Mar 9, 2026
@dwsmith1983 dwsmith1983 merged commit f045ac8 into main Mar 9, 2026
6 checks passed
@dwsmith1983 dwsmith1983 deleted the fix/sensor-sla-deadline branch March 9, 2026 15:44
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 types Public types (pkg/types)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant