Skip to content

Instantly share code, notes, and snippets.

@joseluistorres
Created August 4, 2016 11:51
Show Gist options
  • Save joseluistorres/4772f7d299113c2a5f6ae6402a5fb060 to your computer and use it in GitHub Desktop.
Save joseluistorres/4772f7d299113c2a5f6ae6402a5fb060 to your computer and use it in GitHub Desktop.
class FailingWorker < Processable::Base
include Processable::HandlerRetries
sidekiq_retries_exhausted do |msg|
handle_retries_exhausted(msg)
end
def self.handle_retries_exhausted(msg)
p "===========================Failed #{msg['class']} with #{msg['args']}: #{msg['error_message']}************************"
end
def perform(*args)
raise "------------ or I don't work"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment