diff --git a/app/sidekiq/lighthouse/create_intent_to_file_job.rb b/app/sidekiq/lighthouse/create_intent_to_file_job.rb index 1c4484375c7..85d228077e7 100644 --- a/app/sidekiq/lighthouse/create_intent_to_file_job.rb +++ b/app/sidekiq/lighthouse/create_intent_to_file_job.rb @@ -62,9 +62,6 @@ def perform(in_progress_form_id, veteran_icn, participant_id) init(in_progress_form_id, veteran_icn) - itf_log_monitor ||= BenefitsClaims::IntentToFile::Monitor.new - service ||= BenefitsClaims::Service.new(icn) - itf_log_monitor.track_create_itf_begun(itf_type, form.created_at.to_s, form.user_account_id) service.create_intent_to_file(itf_type, '') itf_log_monitor.track_create_itf_success(itf_type, form.created_at.to_s, form.user_account_id) @@ -104,5 +101,13 @@ def triage_rescued_error(veteran_icn, participant_id, e) itf_log_monitor.track_invalid_itf_type(form, e) end end + + def itf_log_monitor + @itf_log_monitor ||= BenefitsClaims::IntentToFile::Monitor.new + end + + def service + @service ||= BenefitsClaims::Service.new(icn) + end end end