From d73d6f29aa46249b59b599e7eb4b2a60dec7aa8b Mon Sep 17 00:00:00 2001 From: Dmitriy Ivliev <3938172+moofkit@users.noreply.github.com> Date: Sat, 20 Jan 2024 16:24:59 +0200 Subject: [PATCH] release 0.1.0 --- .gitignore | 1 + CHANGELOG.md | 10 +++++++++- README.md | 2 ++ sidekiq_rescue.gemspec => sidekiq-rescue.gemspec | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) rename sidekiq_rescue.gemspec => sidekiq-rescue.gemspec (96%) diff --git a/.gitignore b/.gitignore index 8924f5f..79fbfc8 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ /spec/reports/ /tmp/ Gemfile.lock +*.gem # rspec failure tracking .rspec_status diff --git a/CHANGELOG.md b/CHANGELOG.md index 143a1b0..cd044c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ ## [Unreleased] -## [0.1.0] - 2023-12-27 +## [0.1.0] - 2024-01-20 - Initial release +- Add DSL to configure retries and delay +- Add middleware to rescue jobs +- Add specs +- Add documentation +- Add CI + +[Unreleased]: https://github.com/moofkit/sidekiq-rescue/compare/v0.1.0...HEAD +[0.1.0]: https://github.com/moofkit/sidekiq-rescue/releases/tag/v0.1.0 diff --git a/README.md b/README.md index c61e3dc..3b575f6 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,8 @@ class MyJob end ``` +The `delay` is not the exact time between retries, but a minimum delay. The actual delay calculates based on retries counter and `delay` value. The formula is `delay + retries * rand(10)` seconds. Randomization is used to avoid retry storms. + The default values are: - `delay`: 60 seconds - `limit`: 5 retries diff --git a/sidekiq_rescue.gemspec b/sidekiq-rescue.gemspec similarity index 96% rename from sidekiq_rescue.gemspec rename to sidekiq-rescue.gemspec index 1f96def..c5fdd9c 100644 --- a/sidekiq_rescue.gemspec +++ b/sidekiq-rescue.gemspec @@ -3,7 +3,7 @@ require_relative "lib/sidekiq/rescue/version" Gem::Specification.new do |spec| - spec.name = "sidekiq_rescue" + spec.name = "sidekiq-rescue" spec.version = Sidekiq::Rescue::VERSION spec.authors = ["Dmitrii Ivliev"] spec.email = ["mail@ivda.dev"]