-
-
Save apeckham/2913947 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
require 'queue_classic' | |
module CloudApp | |
Queue = QC::Queue | |
FailedQueue = QC::Queue.new 'queue_classic_failed_jobs' | |
class Worker < QC::Worker | |
def handle_failure(job, exception) | |
FailedQueue.enqueue job | |
Airbrake.notify exception, parameters: job.details | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment