Class: EVSS::DisabilityCompensationForm::UploadBddInstructions

Inherits:
Job
  • Object
show all
Extended by:
Logging::ThirdPartyTransaction::MethodWrapper
Defined in:
app/sidekiq/evss/disability_compensation_form/upload_bdd_instructions.rb

Constant Summary collapse

STATSD_KEY_PREFIX =
'worker.evss.submit_form526_bdd_instructions'

Instance Method Summary collapse

Methods included from Logging::ThirdPartyTransaction::MethodWrapper

wrap_with_logging

Methods included from Sidekiq::Form526JobStatusTracker::JobTracker

#job_success, #job_try, #non_retryable_error_handler, #with_tracking

Methods included from Sidekiq::Form526JobStatusTracker::BackupSubmission

#send_backup_submission_if_enabled

Methods included from SentryLogging

#log_exception_to_sentry, #log_message_to_sentry, #non_nil_hash?, #normalize_level, #rails_logger

Instance Method Details

#perform(submission_id) ⇒ Object

Submits a BDD instruction PDF in to EVSS

Parameters:



74
75
76
77
78
79
80
81
82
83
84
85
86
87
# File 'app/sidekiq/evss/disability_compensation_form/upload_bdd_instructions.rb', line 74

def perform(submission_id)
  @submission_id = submission_id

  Raven.tags_context(source: '526EZ-all-claims')
  super(submission_id)

  with_tracking('Form526 Upload BDD instructions:', submission.saved_claim_id, submission.id) do
    upload_bdd_instructions
  end
rescue => e
  # Can't send a job manually to the dead set.
  # Log and re-raise so the job ends up in the dead set and the parent batch is not marked as complete.
  retryable_error_handler(e)
end