lib/grumlin/repository/instance_methods.rb in grumlin-0.21.0 vs lib/grumlin/repository/instance_methods.rb in grumlin-0.21.1
- old
+ new
@@ -6,10 +6,10 @@
include Grumlin::Expressions
extend Forwardable
UPSERT_RETRY_PARAMS = {
- on: [Grumlin::AlreadyExistsError, Grumlin::ConcurrentInsertFailedError],
+ on: [Grumlin::AlreadyExistsError, Grumlin::ConcurrentModificationError],
sleep_method: ->(n) { Async::Task.current.sleep(n) },
tries: 3,
sleep: ->(n) { (n**2) + 1 + rand }
}.freeze