Module: Gitlab::Database::QueueErrorHandlingConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/gitlab/database/queue_error_handling_concern.rb
Constant Summary collapse
- MAX_LAST_ERROR_LENGTH =
10_000
Instance Method Summary collapse
Instance Method Details
#handle_exception!(error) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/gitlab/database/queue_error_handling_concern.rb', line 15 def handle_exception!(error) transaction do increment!(:attempts) update!(last_error: format_last_error(error)) end end |