Created
August 4, 2016 11:51
-
-
Save joseluistorres/4772f7d299113c2a5f6ae6402a5fb060 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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