lib/sidekiq.rb in sidekiq-3.3.3 vs lib/sidekiq.rb in sidekiq-3.3.4
- old
+ new
@@ -28,10 +28,15 @@
},
dead_max_jobs: 10_000,
dead_timeout_in_seconds: 180 * 24 * 60 * 60 # 6 months
}
+ DEFAULT_WORKER_OPTIONS = {
+ 'retry' => true,
+ 'queue' => 'default'
+ }
+
def self.❨╯°□°❩╯︵┻━┻
puts "Calm down, bro"
end
def self.options
@@ -101,10 +106,10 @@
def self.default_worker_options=(hash)
@default_worker_options = default_worker_options.merge(hash.stringify_keys)
end
def self.default_worker_options
- defined?(@default_worker_options) ? @default_worker_options : { 'retry' => true, 'queue' => 'default' }
+ defined?(@default_worker_options) ? @default_worker_options : DEFAULT_WORKER_OPTIONS
end
def self.load_json(string)
JSON.parse(string)
end