Skip to content

Commit

Permalink
One hour retry delay (#686)
Browse files Browse the repository at this point in the history
* One hour retry delay

* Bump sfdx
  • Loading branch information
mbianco-stripe authored Aug 19, 2022
1 parent 7b8542b commit a1d4768
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
steps:
- checkout
- sfdx/install: &sfdx_version
version: '7.163.0'
version: '7.164.2'
- run: sfdx/bin/run-tests <<parameters.account>>
- store_test_results:
path: sfdx/test-results
Expand Down
5 changes: 5 additions & 0 deletions lib/stripe-force/jobs/base_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ class StripeForce::BaseJob
extend Resque::Plugins::Retry

@queue = :high

# 3d, once per hour
@retry_limit = 71

# 1 hour delay
@retry_delay = 60 * 60

@ignore_exceptions = [Resque::TermException, Integrations::Errors::LockTimeout]
@retry_exceptions = [Exception, Resque::TermException, Integrations::Errors::LockTimeout]

Expand Down

0 comments on commit a1d4768

Please sign in to comment.