Answer the question
In order to leave comments, you need to log in
What could be the problem, tasks are not visible in resque-history?
What could be the problem? I use the resque-history plugin to monitor completed/failed tasks.
Everything is simple in the documentation - add to routes
After these manipulations, the history tab appears in the resque dashboard.
Here is the code in the taskrequire 'resque-history/server'
require 'resque-history'
class WelcomeEmailJob < ActiveJob::Base
extend Resque::Plugins::History
@max_history = 200
@queue = :email
def perform(user)
UserMailer.welcome_email(user).deliver_now
puts "I delivered mail to #{user.login} now, sincerly yours Resque <3"
end
end
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question