def perform refund_log = { success: refund_retry.success?, amount: refund_amount, action: "refund" } if refund_retry.success? refund_log[:reference] = refund_retry.transaction.id refund_log[:message] = refund_retry.transaction.status else refund_log[:message] = refund_retry.message refund_log[:params] = {} refund_retry.errors.each do |error| refund_log[:params][error.code] = error.message end order_transaction.message = refund_log[:params].values.join('|') raise "delayed RefundJob has failed" end end
When I call "delayed RefundJob failed" in the else statement, it creates Airbrake . I want to run the task again if it ends in the else section.
Is there a way to reorder a task without raising an exception? And prevent the creation of an air brake?
I am using delayed_job version 1.
Syed usamah
source share