Remove sidekiq-statistic gem.

* We don't really use it and there is an on-going issue
  with the gem not expiring keys in a Redis list which
  hasn't been fully resolved.

  https://github.com/davydovanton/sidekiq-statistic/issues/73
This commit is contained in:
Guo Xiang Tan 2017-04-26 14:54:47 +08:00
parent f499180bb3
commit b00886f5c1
3 changed files with 7 additions and 4 deletions

View File

@ -99,7 +99,6 @@ gem 'rest-client'
gem 'rinku' gem 'rinku'
gem 'sanitize' gem 'sanitize'
gem 'sidekiq' gem 'sidekiq'
gem 'sidekiq-statistic'
# for sidekiq web # for sidekiq web
gem 'sinatra', require: false gem 'sinatra', require: false

View File

@ -346,8 +346,6 @@ GEM
connection_pool (~> 2.2, >= 2.2.0) connection_pool (~> 2.2, >= 2.2.0)
rack-protection (>= 1.5.0) rack-protection (>= 1.5.0)
redis (~> 3.2, >= 3.2.1) redis (~> 3.2, >= 3.2.1)
sidekiq-statistic (1.2.0)
sidekiq (>= 3.3.4, < 5)
simple-rss (1.3.1) simple-rss (1.3.1)
sinatra (1.4.6) sinatra (1.4.6)
rack (~> 1.4) rack (~> 1.4)
@ -477,7 +475,6 @@ DEPENDENCIES
seed-fu (~> 2.3.5) seed-fu (~> 2.3.5)
shoulda shoulda
sidekiq sidekiq
sidekiq-statistic
simple-rss simple-rss
sinatra sinatra
spork-rails spork-rails

View File

@ -0,0 +1,7 @@
module Jobs
class GrantEmoji < Jobs::Onceoff
def execute_onceoff(args)
$redis.without_namespace.del('sidekiq:sidekiq:statistic')
end
end
end