mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
13 lines
248 B
Ruby
13 lines
248 B
Ruby
module Sidekiq
|
|
module Stats
|
|
module_function
|
|
|
|
def processed
|
|
(Sidekiq.redis { |conn| conn.get('stat:processed') } || 0).to_i
|
|
end
|
|
|
|
def failed
|
|
(Sidekiq.redis { |conn| conn.get('stat:failed') } || 0).to_i
|
|
end
|
|
end
|
|
end
|