mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
A shorter and more concise version of select..size
This commit is contained in:
parent
0ba2ac97f2
commit
c55fdc7a75
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue