-
Notifications
You must be signed in to change notification settings - Fork 0
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: detect and fetch missing pox cycle signer sets #16
Conversation
Vercel deployment URL: https://signer-metrics-b83xj354z-hirosystems.vercel.app 🚀 |
} | ||
|
||
private async fetchStackerSet(cycleNumber: number) { | ||
while (!this.abortController.signal.aborted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of an infinite loop that would keep a job alive indefinitely, could we use logic to re-add this cycle fetch to the back of the queue if it fails and let the PQueue handle the retry? With this infinite loop, if you have a cycle that gets stuck and you add more cycles to the queue there could be a situation where you stop processing new cycles altogether if you hit your CONCURRENCY_LIMIT
Perhaps not super urgent for now, though, could be done in another PR but I think it's something we should keep in mind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving, I'll defer to you for the infinite cycle thing, we can just leave a TODO/issue and solve it later
## [0.3.0](v0.2.2...v0.3.0) (2024-10-28) ### Features * detect and fetch missing pox cycle signer sets ([#16](#16)) ([501cfaa](501cfaa))
🎉 This PR is included in version 0.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Closes #10