Skip to content

PR #15: harden monitor-freshness thresholds and network retries#15

Merged
khalidsaidi merged 1 commit intomainfrom
feat/monitor-freshness-hardening
Mar 1, 2026
Merged

PR #15: harden monitor-freshness thresholds and network retries#15
khalidsaidi merged 1 commit intomainfrom
feat/monitor-freshness-hardening

Conversation

@khalidsaidi
Copy link
Owner

Summary

Hardens monitor-freshness.yml to reduce false alarms and enforce exact thresholds.

Changes

  • add network resilience to stats fetch:
    • --retry 3
    • --retry-all-errors
    • --retry-delay 2
    • --connect-timeout 10
    • --max-time 30
  • switch age checks from floored hours to exact seconds:
    • ingest fails when ageSec > 36 * 3600
    • reachability fails when ageSec > 18 * 3600
  • keep hour output for readability, add second output for precision.

Why

  • avoids edge-case drift where 36h59m could pass due to integer hour flooring
  • reduces transient public-network failures causing noisy monitor alerts

Validation

  • reviewed workflow YAML/script logic
  • no runtime/API code changes

@khalidsaidi khalidsaidi merged commit 1210e73 into main Mar 1, 2026
1 check passed
@khalidsaidi khalidsaidi deleted the feat/monitor-freshness-hardening branch March 1, 2026 06:13
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