S
S
smartcrio2014-12-25 14:21:54
ruby
smartcrio, 2014-12-25 14:21:54

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'

ca3d2c985e.png

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

The statistics show that the tasks were completed, everything worked out, but the history is not shown
5f3b04eeb6.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question