Skip to content

feat: add configurable retry interval for queue retries #144

New issue

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

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

Already on GitHub? # to your account

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 <appleboy.tw@gmail.com>
@appleboy appleboy merged commit 603cfe4 into master Mar 13, 2025
6 checks passed
@appleboy appleboy deleted the options branch March 13, 2025 15:22
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant