Method: IncomeAndAssets::Submissions::Monitor#track_submission_exhaustion

Defined in:
lib/income_and_assets/submissions/monitor.rb

#track_submission_exhaustion(msg, claim = nil) ⇒ Object

log Sidkiq job exhaustion, complete failure after all retries

Parameters:

See Also:

  • IncomeAndAssetsIntakeJob


97
98
99
100
101
102
103
104
105
# File 'lib/income_and_assets/submissions/monitor.rb', line 97

def track_submission_exhaustion(msg, claim = nil)
  StatsD.increment("#{SUBMISSION_STATS_KEY}.exhausted")
  Rails.logger.error('Lighthouse::IncomeAndAssetsIntakeJob submission to LH exhausted!', {
                       claim_id: msg['args'].first,
                       confirmation_number: claim&.confirmation_number,
                       message: msg,
                       user_account_uuid: msg['args'].length <= 1 ? nil : msg['args'][1]
                     })
end