Alert System
Context
This workflow documents when alerts are triggered, how SMTP delivery is attempted, and why alert failures must not block core processing.
Details
Alert flow: 1. Detect operational condition (quota threshold, API issue, missing prices). 2. Build alert payload and choose alert type. 3. Attempt SMTP delivery using configured transport mode. 4. Log success/failure details. 5. Continue pipeline execution (fail-open principle).
Key behavior:
- SMTP supports explicit transport modes (starttls, ssl, none).
- Timeout is configurable via environment settings.
- Delivery failure is logged, but business processing continues.
Silent-failure triage: - verify SMTP environment variables; - verify transport mode and timeout settings; - confirm failure logs exist and include actionable error details.