Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add configurable delay for retrying jobs #257

Merged
merged 3 commits into from
Aug 30, 2024
Merged

Conversation

rafaelcr
Copy link
Collaborator

Also, set a customized job retry delay when receiving a rate limit from a metadata host, so we don't enqueue the same job again if we're expecting to still be rate limited.

Fixes #84

Copy link

Vercel deployment URL: https://token-metadata-qkuy5qpv2-hirosystems.vercel.app 🚀

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link
Contributor

@tippenein tippenein left a comment

Choose a reason for hiding this comment

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

Looks good. Only thing I'm missing (possibly just in the context of this PR) is the use of JOB_QUEUE_MAX_RETRIES. It sort of seems like it will try forever based on this, but if something distinct happens after the max we'd probably want a test. Non-blocking commentary ofc :shipit:

@rafaelcr rafaelcr merged commit 20d753a into develop Aug 30, 2024
9 of 10 checks passed
@rafaelcr rafaelcr deleted the feat/retry-delay branch August 30, 2024 19:18
blockstack-devops pushed a commit that referenced this pull request Aug 30, 2024
## [1.1.0](v1.0.3...v1.1.0) (2024-08-30)

### Features

* add configurable delay for retrying jobs ([#257](#257)) ([20d753a](20d753a))

### Bug Fixes

* add chain tip etag generator ([#255](#255)) ([2b993cd](2b993cd))
* retry when a contract is not yet found ([#256](#256)) ([46d8fc8](46d8fc8))
@blockstack-devops
Copy link

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

add minimum delay for a job to be retried
3 participants