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:
parent
bab2fd885e
commit
2ea021c7ad
1 changed files with 1 additions and 1 deletions
|
@ -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' }
|
||||
|
|
Loading…
Reference in a new issue