discourse/app/jobs/onceoff/clean_up_sidekiq_statistic.rb
Joffrey JAFFEUX 0d3d2c43a0
DEV: s/\$redis/Discourse\.redis (#8431)
This commit also adds a rubocop rule to prevent global variables.
2019-12-03 10:05:53 +01:00

10 lines
214 B
Ruby

# frozen_string_literal: true
module Jobs
class CleanUpSidekiqStatistic < ::Jobs::Onceoff
def execute_onceoff(args)
Discourse.redis.without_namespace.del('sidekiq:sidekiq:statistic')
end
end
end