Skip to content

feat(data-layer): add Discord notifications for task failures#17215

Merged
pettinarip merged 1 commit into
devfrom
feat/discord-failure-notifications
Feb 3, 2026
Merged

feat(data-layer): add Discord notifications for task failures#17215
pettinarip merged 1 commit into
devfrom
feat/discord-failure-notifications

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Feb 3, 2026

Summary

  • Add global tasks.onFailure handler for Discord webhook notifications
  • Sends formatted embeds with task ID, error message, and timestamp
  • Required because trigger.dev's built-in alerts don't format payloads for Discord's webhook API

Configuration

Add DISCORD_WEBHOOK_URL to trigger.dev environment variables.

Test plan

  • Add DISCORD_WEBHOOK_URL env var in trigger.dev dashboard
  • Trigger a task failure (e.g., by temporarily breaking a fetcher)
  • Verify Discord notification appears in the configured channel

Add global onFailure handler that sends formatted embeds to Discord
when any data fetch task fails. Uses DISCORD_WEBHOOK_URL env var.

Trigger.dev's built-in alerts don't format payloads for Discord's
webhook API, so this custom handler ensures proper embed formatting.
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 3, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 04c2ab5
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6981f56167724600085c32b9
😎 Deploy Preview https://deploy-preview-17215.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 59 (no change from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (🟢 up 1 from production)
SEO: 100 (no change from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@pettinarip pettinarip merged commit 35638fb into dev Feb 3, 2026
5 of 6 checks passed
@pettinarip pettinarip deleted the feat/discord-failure-notifications branch February 3, 2026 13:19
@wackerow wackerow mentioned this pull request Feb 5, 2026
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