Removed debug information.

This commit is contained in:
Martin Edenhofer 2018-10-16 16:43:58 +02:00
parent a160c518e1
commit c35e2a0aab

View file

@ -335,7 +335,6 @@ class Scheduler < ApplicationModel
loop do
success, failure = Delayed::Worker.new.work_off
if failure.nonzero?
p Delayed::Job.where('last_error IS NOT NULL').to_json # rubocop:disable Rails/Output
raise "ERROR: #{failure} failed background jobs: #{Delayed::Job.where('last_error IS NOT NULL').inspect}"
end
break if success.zero?