Skip to content

Commit

Permalink
only completed normal
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlball authored Dec 19, 2024
1 parent f518a2d commit ebdc4b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/app/jobs/resque_jobs/run_simulate_data_point.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebdc4b9

Please sign in to comment.