You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class SidekiqRetryQueueCheck < OkComputer::Check
def check
if sidekiq_retry_size > sidekiq_retry_size_threshold
mark_failure
mark_message "Sidekiq retry queue size (#{sidekiq_retry_size}) is above the threshold (#{sidekiq_retry_size_threshold})"
else
mark_message "Sidekiq retry queue size (#{sidekiq_retry_size}) is below the threshold (#{sidekiq_retry_size_threshold})"
end
rescue => e
mark_failure
mark_message "Unable to check sidekiq retry queue size with error: #{e}"
end
private
def sidekiq_retry_size
Sidekiq::Stats.new.retry_size.to_i
end
def sidekiq_retry_size_threshold
Settings.sidekiq_retry_queue_threshold.to_i
end
end
OkComputer::Registry.register 'sidekiq-retry', SidekiqRetryQueueCheck.new
The text was updated successfully, but these errors were encountered:
Adapt from...
The text was updated successfully, but these errors were encountered: