Class: MHV::PhrUpdateJob
- Inherits:
-
Object
- Object
- MHV::PhrUpdateJob
- Includes:
- Sidekiq::Job
- Defined in:
- app/sidekiq/mhv/phr_update_job.rb
Instance Method Summary collapse
- #handle_errors(e) ⇒ Object private
- #mhv_user?(mhv_correlation_id) ⇒ Boolean private
- #perform(icn, mhv_correlation_id) ⇒ Object
- #run_refresh(icn) ⇒ Object private
Instance Method Details
#handle_errors(e) ⇒ Object (private)
32 33 34 |
# File 'app/sidekiq/mhv/phr_update_job.rb', line 32 def handle_errors(e) Rails.logger.error("MHV PHR refresh failed: #{e.}", e) end |
#mhv_user?(mhv_correlation_id) ⇒ Boolean (private)
28 29 30 |
# File 'app/sidekiq/mhv/phr_update_job.rb', line 28 def mhv_user?(mhv_correlation_id) mhv_correlation_id.present? end |
#perform(icn, mhv_correlation_id) ⇒ Object
15 16 17 18 19 |
# File 'app/sidekiq/mhv/phr_update_job.rb', line 15 def perform(icn, mhv_correlation_id) run_refresh(icn) if mhv_user?(mhv_correlation_id) rescue => e handle_errors(e) end |