Class: Gitlab::Database::WithLockRetriesOutsideTransaction

  • Object
show all
Defined in:


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

#initialize, #run

Constructor Details

This class inherits a constructor from Gitlab::Database::WithLockRetries