Do not fail when environment.sidekiq.retry is set to false, closes #4545
This commit is contained in:
parent
1da6664712
commit
5aa13adfb1
1 changed files with 2 additions and 2 deletions
|
|
@ -5,8 +5,8 @@
|
||||||
module Workers
|
module Workers
|
||||||
class Base
|
class Base
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
sidekiq_options 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
|
retry: (rt = AppConfig.environment.sidekiq.retry.get) && rt.to_i
|
||||||
|
|
||||||
# In the long term we need to eliminate the cause of these
|
# In the long term we need to eliminate the cause of these
|
||||||
def suppress_annoying_errors(&block)
|
def suppress_annoying_errors(&block)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue