Skip to content

Commit

Permalink
fix: define retry limit in retry config (#693)
Browse files Browse the repository at this point in the history
fix: define retry limit is defined in retry config
  • Loading branch information
dhensby authored Sep 9, 2023
1 parent e589ae3 commit 5ad0486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/definitions/retry.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
/**
* Default exponential backoff configuration for retries.
* Default retry config for octokit retry plugin
*/
export const RETRY_CONF = {
// By default, Octokit does not retry on 404s.
// But we want to retry on 404s to account for replication lag.
doNotRetry: [400, 401, 403, 422],
retries: 3,
};

0 comments on commit 5ad0486

Please sign in to comment.