diff --git a/Gemfile b/Gemfile index 32101db5da7..8cb3ff20b51 100644 --- a/Gemfile +++ b/Gemfile @@ -99,7 +99,6 @@ gem 'rest-client' gem 'rinku' gem 'sanitize' gem 'sidekiq' -gem 'sidekiq-statistic' # for sidekiq web gem 'sinatra', require: false diff --git a/Gemfile.lock b/Gemfile.lock index 217b2948933..a4e0de22bc4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -346,8 +346,6 @@ GEM connection_pool (~> 2.2, >= 2.2.0) rack-protection (>= 1.5.0) redis (~> 3.2, >= 3.2.1) - sidekiq-statistic (1.2.0) - sidekiq (>= 3.3.4, < 5) simple-rss (1.3.1) sinatra (1.4.6) rack (~> 1.4) @@ -477,7 +475,6 @@ DEPENDENCIES seed-fu (~> 2.3.5) shoulda sidekiq - sidekiq-statistic simple-rss sinatra spork-rails diff --git a/app/jobs/onceoff/clean_up_sidekiq_statistic.rb b/app/jobs/onceoff/clean_up_sidekiq_statistic.rb new file mode 100644 index 00000000000..624e01af5d6 --- /dev/null +++ b/app/jobs/onceoff/clean_up_sidekiq_statistic.rb @@ -0,0 +1,7 @@ +module Jobs + class GrantEmoji < Jobs::Onceoff + def execute_onceoff(args) + $redis.without_namespace.del('sidekiq:sidekiq:statistic') + end + end +end