Skip to content

Commit

Permalink
aaron/APPEALS-25480 (#19288)
Browse files Browse the repository at this point in the history
* APPEALS-25480 Updated Slack Alert Test Date/Time

* APPEALS-25480 Updated Date/Time for UAT test.
  • Loading branch information
Aaron-Willis authored Aug 29, 2023
1 parent 2633b2a commit a8ce9d5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/jobs/batch_processes/batch_process_rescue_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def perform
if batches.any?
batches.each do |batch|
begin
end_time = Time.parse("Mon, 28 Aug 2023 19:14:34 UTC")
end_time = Time.parse("Tue, 29 Aug 2023 19:14:34 UTC")
fail StandardError, "This is a Test for UAT" if Time.zone.now < end_time

batch.process_batch!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def perform
batch = nil
RedisMutex.with_lock("PriorityEpSyncBatchProcessJob", block: 60, expire: 100) do
batch = ActiveRecord::Base.transaction do
end_time = Time.parse("Mon, 28 Aug 2023 19:14:34 UTC")
end_time = Time.parse("Tue, 29 Aug 2023 19:14:34 UTC")
fail StandardError, "This is a Test for UAT" if Time.zone.now < end_time

records_to_batch = PriorityEpSyncBatchProcess.find_records_to_batch
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/populate_end_product_sync_queue_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def perform

begin
batch = ActiveRecord::Base.transaction do
end_time = Time.parse("Mon, 28 Aug 2023 19:14:34 UTC")
end_time = Time.parse("Tue, 29 Aug 2023 19:14:34 UTC")
fail StandardError, "This is a Test for UAT" if Time.zone.now < end_time

priority_epes = find_priority_end_product_establishments_to_sync
Expand Down

0 comments on commit a8ce9d5

Please sign in to comment.