From ea792246d043e832cf974a444f872a96c85e1178 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonne=20Ha=C3=9F?= <me@mrzyx.de>
Date: Thu, 25 Apr 2013 21:30:05 +0200
Subject: [PATCH] bump sidekiq

---
 Gemfile                     |  2 +-
 Gemfile.lock                | 12 +++++-------
 app/workers/base.rb         |  3 +--
 config/defaults.yml         |  1 -
 config/diaspora.yml.example |  3 ---
 5 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/Gemfile b/Gemfile
index 943e3c2993..4a3de515ad 100644
--- a/Gemfile
+++ b/Gemfile
@@ -17,7 +17,7 @@ gem 'devise', '2.1.3'
 
 # Background processing
 
-gem 'sidekiq', '2.10.1'
+gem 'sidekiq', '2.11.1'
 gem 'sinatra', '1.3.3'
 gem 'slim', '1.3.8'
 
diff --git a/Gemfile.lock b/Gemfile.lock
index 13b68b4e6d..4922904e8c 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -55,8 +55,7 @@ GEM
     carrierwave (0.8.0)
       activemodel (>= 3.2.0)
       activesupport (>= 3.2.0)
-    celluloid (0.12.4)
-      facter (>= 1.6.12)
+    celluloid (0.13.0)
       timers (>= 1.0.0)
     childprocess (0.3.9)
       ffi (~> 1.0, >= 1.0.11)
@@ -100,7 +99,6 @@ GEM
     excon (0.20.1)
     execjs (1.4.0)
       multi_json (~> 1.0)
-    facter (1.7.0)
     factory_girl (4.2.0)
       activesupport (>= 3.0.0)
     factory_girl_rails (4.2.1)
@@ -309,7 +307,7 @@ GEM
     rdoc (3.12.2)
       json (~> 1.4)
     redcarpet (2.2.2)
-    redis (3.0.3)
+    redis (3.0.4)
     redis-namespace (1.2.1)
       redis (~> 3.0.0)
     remotipart (1.0.5)
@@ -348,8 +346,8 @@ GEM
       multi_json (~> 1.0)
       rubyzip
       websocket (~> 1.0.4)
-    sidekiq (2.10.1)
-      celluloid (~> 0.12.0)
+    sidekiq (2.11.1)
+      celluloid (~> 0.13.0)
       connection_pool (~> 1.0)
       multi_json (~> 1)
       redis (~> 3)
@@ -470,7 +468,7 @@ DEPENDENCIES
   ruby-oembed (= 0.8.8)
   sass-rails (= 3.2.6)
   selenium-webdriver (= 2.32.1)
-  sidekiq (= 2.10.1)
+  sidekiq (= 2.11.1)
   sinatra (= 1.3.3)
   slim (= 1.3.8)
   spork (= 1.0.0rc3)
diff --git a/app/workers/base.rb b/app/workers/base.rb
index f1ee498a6e..d7752ffde2 100644
--- a/app/workers/base.rb
+++ b/app/workers/base.rb
@@ -5,8 +5,7 @@
 module Workers
   class Base
     include Sidekiq::Worker
-    sidekiq_options timeout: AppConfig.environment.sidekiq.timeout.to_i,
-                    backtrace: ((bt = AppConfig.environment.sidekiq.backtrace.get) && bt.to_i),
+    sidekiq_options backtrace: ((bt = AppConfig.environment.sidekiq.backtrace.get) && bt.to_i),
                     retry:  AppConfig.environment.sidekiq.retry.to_i
 
     # In the long term we need to eliminate the cause of these
diff --git a/config/defaults.yml b/config/defaults.yml
index 595baff119..4f3b967962 100644
--- a/config/defaults.yml
+++ b/config/defaults.yml
@@ -16,7 +16,6 @@ defaults:
       namespace: "diaspora"
       concurrency: 5
       retry: 10
-      timeout: 900
       backtrace: 15
       log: "log/sidekiq.log"
     s3:
diff --git a/config/diaspora.yml.example b/config/diaspora.yml.example
index f503933151..82beb6143d 100644
--- a/config/diaspora.yml.example
+++ b/config/diaspora.yml.example
@@ -84,9 +84,6 @@ configuration: ## Section
       ## Set this to false to disable it completely 
       #retry: 10
 
-      ## Time in seconds before a job is killed
-      #timeout: 900
-
       ## Namespace to use in Redis, useful if you need to run
       ## multiple instances of Diaspora using the same Redis instance
       #namespace: "diaspora"
-- 
GitLab