lib/grumlin/repository/instance_methods.rb in grumlin-0.22.2 vs lib/grumlin/repository/instance_methods.rb in grumlin-0.22.3
- old
+ new
@@ -8,10 +8,10 @@
extend Forwardable
UPSERT_RETRY_PARAMS = {
on: [Grumlin::AlreadyExistsError, Grumlin::ConcurrentModificationError],
sleep_method: ->(n) { Async::Task.current.sleep(n) },
- tries: 3,
+ tries: 5,
sleep: ->(n) { (n**2) + 1 + rand }
}.freeze
DEFAULT_ERROR_HANDLING_STRATEGY = ErrorHandlingStrategy.new(mode: :retry, **UPSERT_RETRY_PARAMS)