Skip to content

Add retry logic to scheduled task fetchers#17169

Merged
pettinarip merged 1 commit into
devfrom
fix/retry-on-throw-for-fetchers
Jan 27, 2026
Merged

Add retry logic to scheduled task fetchers#17169
pettinarip merged 1 commit into
devfrom
fix/retry-on-throw-for-fetchers

Conversation

@pettinarip
Copy link
Copy Markdown
Member

@pettinarip pettinarip commented Jan 26, 2026

Summary

  • Wrap all fetcher calls in runTasks with retry.onThrow to handle transient failures
  • Addresses intermittent CoinGecko 429 rate limit errors in hourly tasks
  • Uses exponential backoff (2s-30s) with up to 3 attempts and jitter

Test plan

  • Deploy to trigger.dev dev environment
  • Monitor hourly task runs for reduced 429 failures
  • Verify retries appear in trigger.dev logs when rate limited

Wrap all fetcher calls in runTasks with retry.onThrow to handle
transient failures like CoinGecko 429 rate limits. Uses exponential
backoff (2s-30s) with up to 3 attempts and jitter to avoid thundering
herd issues.
@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 26, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 72e6c7d
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6977540b036ea7000881cd83
😎 Deploy Preview https://deploy-preview-17169.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: 56 (🟢 up 3 from production)
Accessibility: 94 (no change from production)
Best Practices: 100 (no change 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.

Copy link
Copy Markdown
Member

@wackerow wackerow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm.. no more 429 errors over the past 10 hourly runs. Not seeing any logs related to rate limiting though, but the tasks are completing

@pettinarip pettinarip merged commit 3d800a1 into dev Jan 27, 2026
7 checks passed
@pettinarip pettinarip deleted the fix/retry-on-throw-for-fetchers branch January 27, 2026 11:28
@pettinarip pettinarip mentioned this pull request Jan 29, 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.

2 participants