diff --git a/app/jobs/base.rb b/app/jobs/base.rb index 2f7f68002..8127d755b 100644 --- a/app/jobs/base.rb +++ b/app/jobs/base.rb @@ -14,7 +14,7 @@ module Jobs end def self.num_email_retry_jobs - Sidekiq::RetrySet.new.select { |job| job.klass =~ /Email$/ }.size + Sidekiq::RetrySet.new.count { |job| job.klass =~ /Email$/ } end class Base