Skip to content

fix(monitor): make alert webhook optional and log-only - #224

Open
collinsezedike wants to merge 1 commit into
mainfrom
fix/monitor-optional-alerts
Open

collinsezedike wants to merge 1 commit into
mainfrom
fix/monitor-optional-alerts

Conversation

@collinsezedike

Copy link
Copy Markdown
Collaborator

Summary

The scheduled monitor no longer fails when ALERT_WEBHOOK_URL is unset. With no webhook configured it polls, logs every event, emits a warning, and exits cleanly, so the every-five-minute red runs on main stop while the service still does useful work. Configuring the secret later enables alert delivery with no code change.

This affects only packages/tholos-monitor and its workflow. No contract or SDK changes.

Test plan

  • pnpm lint, pnpm build, and pnpm test pass in packages/tholos-monitor (25 tests)
  • Ran node dist/main.js against the canonical testnet v1 contract with no webhook; it polled from ledger 5318774 and finished cleanly
  • Cargo checks and scripts/testnet-smoke.sh are not applicable to this change

This branch has not been deployed

No deployments
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