Class: EVSS::DisabilityCompensationForm::Job
- Inherits:
-
Object
- Object
- EVSS::DisabilityCompensationForm::Job
- Includes:
- JobStatus, Sidekiq::Job
- Defined in:
- app/sidekiq/evss/disability_compensation_form/job.rb
Overview
Base class for jobs involved in the 526 submission workflow. Mixes in the JobStatus module so all sub-classes have automatic metrics and logging.
Direct Known Subclasses
CentralMail::SubmitForm4142Job, Form0781DocumentUploadFailureEmail, Form4142DocumentUploadFailureEmail, Form526DocumentUploadFailureEmail, SubmitForm0781, SubmitForm526, SubmitForm526Cleanup, SubmitForm8940, SubmitUploads, UploadBddInstructions
Constant Summary
Constants included from Sidekiq::Form526JobStatusTracker::JobTracker
Sidekiq::Form526JobStatusTracker::JobTracker::STATSD_KEY_PREFIX
Instance Method Summary collapse
-
#perform(submission_id) ⇒ Object
Sub-classes should call super so that @submission id is available as an instance variable.
- #submission ⇒ Object private
Methods included from Sidekiq::Form526JobStatusTracker::JobTracker
#error_message, #job_success, #job_try, #klass, #log_error, #log_info, #metrics, #non_retryable_error_handler, #retryable_error_handler, #update_background_job_errors, #upsert_job_status, #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, #set_sentry_metadata
Instance Method Details
#perform(submission_id) ⇒ Object
Sub-classes should call super so that @submission id is available as an instance variable
16 17 18 |
# File 'app/sidekiq/evss/disability_compensation_form/job.rb', line 16 def perform(submission_id) @submission_id = submission_id end |
#submission ⇒ Object (private)
22 23 24 |
# File 'app/sidekiq/evss/disability_compensation_form/job.rb', line 22 def submission @submission ||= Form526Submission.find(@submission_id) end |