Skip to content

Commit

Permalink
99019: Add deprecation warning for DR non-engine scheduled jobs and r…
Browse files Browse the repository at this point in the history
…emove from periodic jobs
  • Loading branch information
dfong-adh committed Dec 18, 2024
1 parent 49a682a commit 2809d00
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions app/sidekiq/decision_review/hlr_status_updater_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

module DecisionReview
class HlrStatusUpdaterJob < SavedClaimStatusUpdaterJob
def perform
Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by engine job")
super
end

private

def records_to_update
Expand Down
5 changes: 5 additions & 0 deletions app/sidekiq/decision_review/nod_status_updater_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

module DecisionReview
class NodStatusUpdaterJob < SavedClaimStatusUpdaterJob
def perform
Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by engine job")
super
end

private

def records_to_update
Expand Down
5 changes: 5 additions & 0 deletions app/sidekiq/decision_review/sc_status_updater_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

module DecisionReview
class ScStatusUpdaterJob < SavedClaimStatusUpdaterJob
def perform
Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job")
super
end

private

def records_to_update
Expand Down
5 changes: 0 additions & 5 deletions lib/periodic_jobs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@
# Every 15min job that sends missing Pega statuses to DataDog
mgr.register('*/15 * * * *', 'IvcChampva::MissingFormStatusJob')

# Hourly jobs that update DR SavedClaims with delete_date
mgr.register('20 * * * *', 'DecisionReview::HlrStatusUpdaterJob')
mgr.register('30 * * * *', 'DecisionReview::NodStatusUpdaterJob')
mgr.register('50 * * * *', 'DecisionReview::ScStatusUpdaterJob')

# Engine version: Hourly jobs that update DR SavedClaims with delete_date
mgr.register('10 * * * *', 'DecisionReviews::HlrStatusUpdaterJob')
mgr.register('15 * * * *', 'DecisionReviews::NodStatusUpdaterJob')
Expand Down

0 comments on commit 2809d00

Please sign in to comment.