1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Only show warning if :timeout is used solves #862

This commit is contained in:
Bart Olsthoorn 2013-04-25 17:12:23 +03:00
parent bab2fd885e
commit 2ea021c7ad

View file

@ -55,7 +55,7 @@ module Sidekiq
# can be true, false or an integer number of lines to save, default *false*
def sidekiq_options(opts={})
self.sidekiq_options_hash = get_sidekiq_options.merge((opts || {}).stringify_keys)
::Sidekiq.logger.warn("#{self.name} - :timeout is unsafe and support has been removed from Sidekiq, see http://bit.ly/OtYpK for details")
::Sidekiq.logger.warn("#{self.name} - :timeout is unsafe and support has been removed from Sidekiq, see http://bit.ly/OtYpK for details") if opts.include? :timeout
end
DEFAULT_OPTIONS = { 'retry' => true, 'queue' => 'default' }