From 0b3a02a05df0077109dc35aede3749818035a100 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Mon, 22 Feb 2021 11:27:29 +0100 Subject: [PATCH] handle errors in PaymentScheduleItemWorker --- app/workers/payment_schedule_item_worker.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/workers/payment_schedule_item_worker.rb b/app/workers/payment_schedule_item_worker.rb index 3f27d0c53..56348aa6b 100644 --- a/app/workers/payment_schedule_item_worker.rb +++ b/app/workers/payment_schedule_item_worker.rb @@ -49,5 +49,7 @@ class PaymentScheduleItemWorker attached_object: psi psi.update_attributes(state: 'pending') end + rescue StandardError + psi.update_attributes(state: 'error') end end