Skip to content

Commit

Permalink
Increase attempts to 2 for retryIfConflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Jan 7, 2021
1 parent 90a1f95 commit 4b3c3ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/alerts/server/lib/retry_if_conflicts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ import { Logger, SavedObjectsErrorHelpers } from '../../../../../src/core/server
type RetryableForConflicts<T> = () => Promise<T>;

// number of times to retry when conflicts occur
// note: it seems unlikely that we'd need more than one retry, but leaving
// this statically configurable in case we DO need > 1
export const RetryForConflictsAttempts = 1;
export const RetryForConflictsAttempts = 2;

// milliseconds to wait before retrying when conflicts occur
// note: we considered making this random, to help avoid a stampede, but
Expand Down

0 comments on commit 4b3c3ed

Please sign in to comment.