Skip to content

Commit

Permalink
add SignalException in rescue
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlball committed Aug 10, 2024
1 parent 053e45a commit 6530523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/app/jobs/resque_jobs/run_simulate_data_point.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def self.perform(data_point_id, options = {})
d.add_to_rails_log(msg)
puts msg
end
rescue Errno::ENOSPC, Resque::DirtyExit, Resque::TermException, Resque::PruneDeadWorkerDirtyExit => e
rescue SignalException, Errno::ENOSPC, Resque::DirtyExit, Resque::TermException, Resque::PruneDeadWorkerDirtyExit => e
# Log the termination and re-enqueue attempt
d.add_to_rails_log("Worker Caught Exception: #{e.inspect}: Re-enqueueing DataPoint ID #{data_point_id}")
Resque.enqueue(self, data_point_id, options)
Expand Down

0 comments on commit 6530523

Please sign in to comment.