From ebdc4b90d49d1259aa17da05f653e18123a56473 Mon Sep 17 00:00:00 2001 From: Brian Ball Date: Thu, 19 Dec 2024 13:30:18 -0600 Subject: [PATCH] only completed normal --- server/app/jobs/resque_jobs/run_simulate_data_point.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app/jobs/resque_jobs/run_simulate_data_point.rb b/server/app/jobs/resque_jobs/run_simulate_data_point.rb index bf3219cd7..fb708f8ab 100644 --- a/server/app/jobs/resque_jobs/run_simulate_data_point.rb +++ b/server/app/jobs/resque_jobs/run_simulate_data_point.rb @@ -22,7 +22,8 @@ def self.perform(data_point_id, options = {}) # There is a case where that worker completes a successful job, before the requeued DP starts. # In that case, we should skip re-running that DP because it was both completed and completed normal already. # If its a requeued failed job, then that should still get re-run - if !(statuses[:status] == 'completed' && statuses[:status_message] == 'completed normal') + if !(statuses[:status_message] == 'completed normal') #relax requirement to just completed normal + #if !(statuses[:status] == 'completed' && statuses[:status_message] == 'completed normal') msg = "RUNNING DJ: #{statuses[:status]} and #{statuses[:status_message]}" d.add_to_rails_log(msg) puts msg