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 retry interval for queue retries #144

Merged
merged 1 commit into from
Mar 13, 2025
Merged

Conversation

appleboy
Copy link
Member

  • Import time package
  • Add WithRetryInterval function to set retry intervals
  • Add retryInterval field to Options struct with default value of 1 second
  • New file options_test.go for testing WithRetryInterval functionality with various durations
  • Add retryInterval field to Queue struct
  • Initialize ticker with retryInterval in Queue and update its usage in start method

ref: #142

- Import `time` package
- Add `WithRetryInterval` function to set retry intervals
- Add `retryInterval` field to `Options` struct with default value of 1 second
- New file `options_test.go` for testing `WithRetryInterval` functionality with various durations
- Add `retryInterval` field to `Queue` struct
- Initialize ticker with `retryInterval` in `Queue` and update its usage in `start` method

Signed-off-by: appleboy <[email protected]>
@appleboy appleboy merged commit 603cfe4 into master Mar 13, 2025
6 checks passed
@appleboy appleboy deleted the options branch March 13, 2025 15:22
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