Skip to content

Commit

Permalink
Do not fail when environment.sidekiq.retry is set to false, closes di…
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Sep 24, 2013
1 parent 1da6664 commit 5aa13ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/workers/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
module Workers
class Base
include Sidekiq::Worker
sidekiq_options backtrace: ((bt = AppConfig.environment.sidekiq.backtrace.get) && bt.to_i),
retry: AppConfig.environment.sidekiq.retry.to_i
sidekiq_options backtrace: (bt = AppConfig.environment.sidekiq.backtrace.get) && bt.to_i,
retry: (rt = AppConfig.environment.sidekiq.retry.get) && rt.to_i

# In the long term we need to eliminate the cause of these
def suppress_annoying_errors(&block)
Expand Down

0 comments on commit 5aa13ad

Please sign in to comment.