Skip to content

Commit

Permalink
fix: define retry limit is defined in retry config
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Sep 8, 2023
1 parent e589ae3 commit 59b679e
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 59b679e

Please sign in to comment.