Class: Gitlab::Database::WithLockRetriesOutsideTransaction
- Inherits:
-
WithLockRetries
- Object
- WithLockRetries
- Gitlab::Database::WithLockRetriesOutsideTransaction
- Defined in:
- lib/gitlab/database/with_lock_retries_outside_transaction.rb
Overview
This retry method behaves similar to WithLockRetries except it does not wrap itself into a transaction scope.
In our context, this is only useful if directly connected to
PostgreSQL. When going through pgbouncer, this method won't work
as it relies on using SET outside transactions (and hence can be
multiplexed across different connections).
Constant Summary
Constants inherited from WithLockRetries
Gitlab::Database::WithLockRetries::AttemptsExhaustedError, Gitlab::Database::WithLockRetries::DEFAULT_TIMING_CONFIGURATION, Gitlab::Database::WithLockRetries::NULL_LOGGER
Method Summary
Methods inherited from WithLockRetries
Constructor Details
This class inherits a constructor from Gitlab::Database::WithLockRetries