Skip to content

Commit

Permalink
Merge pull request #2018 from unboxed/retry-2-mins
Browse files Browse the repository at this point in the history
Retry PlanningApplicationDependencyJob every 2 mins
  • Loading branch information
benbaumann95 authored Nov 5, 2024
2 parents cd16249 + 70a9d1d commit 7ea981e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ module BopsApi
class PlanningApplicationDependencyJob < ApplicationJob
queue_as :submissions

retry_on(StandardError, attempts: 5, wait: 5.minutes, jitter: 0) do |_, error|
retry_on(StandardError, attempts: 5, wait: 2.minutes, jitter: 0) do |_, error|
Appsignal.report_error(error)
end

retry_on(Faraday::TimeoutError, attempts: 5, wait: 5.minutes, jitter: 0) do |_, error|
retry_on(Faraday::TimeoutError, attempts: 5, wait: 2.minutes, jitter: 0) do |_, error|
Appsignal.report_error(error)
end

Expand Down

0 comments on commit 7ea981e

Please sign in to comment.