Skip to content

eetay/sneakers-retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sneakers-Retry

A modified retry handler for RabbitMQ and Sneakers

A small modification of Sneaker's built-in Maxretry class the replacement class is called SneakersRetry::Handlers::Maxretry2 has the exact same logic, except that when a message fails all retries, this handler stores the final failure (the message) in same format as the original message, allowing you to use RabbitMQ's shovel plugin to manually re-enqueue the messages who failed all retries Something that is sometimes needed in production systems

Installation

Include it in your Gemfile.

$ cat Gemfile
...
gem 'sneakers-retry'
...

Next install it with Bundler.

$ bundle install

Use:

read documentation for Sneakers initialize your worker with the Maxretry2 handler:

class MyWorker
  ...
   from_queue 'audit_service', {
      handler: SneakersRetry::Handlers::Maxretry2,
      ...
   }
   ...
end

Releases

No releases published

Packages

No packages published

Languages