From 0a0659d1150a7df8f0ca23e4876672e95a103f51 Mon Sep 17 00:00:00 2001 From: Alessandro Desantis Date: Thu, 19 Nov 2020 13:14:14 +0100 Subject: Process one installment at a time in background jobs Instead of attempting to process multiple installments at a time, which increases the chances something might go wrong, we are now only processing one installment at a time. This also improves the extension's performance, because the installments can be processed in parallel. --- lib/solidus_subscriptions/processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/solidus_subscriptions/processor.rb b/lib/solidus_subscriptions/processor.rb index 4547cec..b5aaa70 100644 --- a/lib/solidus_subscriptions/processor.rb +++ b/lib/solidus_subscriptions/processor.rb @@ -29,7 +29,7 @@ module SolidusSubscriptions end def process_installment(installment) - ProcessInstallmentsJob.perform_later(installment) + ProcessInstallmentJob.perform_later(installment) end end end -- cgit v1.2.3