Skip to content

feat: Automated Health Checks and Failure Notifications (#285)#375

Open
TochukwuJustice wants to merge 1 commit intoEDOHWARES:mainfrom
TochukwuJustice:fix-health-check
Open

feat: Automated Health Checks and Failure Notifications (#285)#375
TochukwuJustice wants to merge 1 commit intoEDOHWARES:mainfrom
TochukwuJustice:fix-health-check

Conversation

@TochukwuJustice
Copy link
Copy Markdown

closes #285
Summary of Changes:

Enhanced Trigger Model: Added consecutiveFailures, lastHealthCheckAt, and automated health check configuration to the Trigger schema.
Background Health Worker: Implemented a new HealthWorker that periodically performs "No-Op" connectivity tests for all active triggers.
Auto-Disable Logic: Triggers are now automatically disabled after 5 consecutive failures to protect system resources.
Notification System: Implemented missing EmailService and DiscordService to notify trigger owners of persistent failures.
Soroban Event Parsing Fix: Added robust XDR decoding in poller.js using scValToNative to accurately extract event names and payloads according to Stellar documentation.
Tests & Documentation: Added a comprehensive test suite in health.test.js and detailed documentation in docs/health_checks.md.
Reason for Changes: To enhance the reliability and monitoring capabilities of the EventHorizon platform, ensuring that unstable integrations are identified and handled proactively rather than failing silently.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@TochukwuJustice Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Backend: Automated Health Checks and Failure Notifications for Triggers

1 participant