diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-11-19 13:14:14 +0100 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2021-01-30 15:23:41 +0100 |
commit | 0a0659d1150a7df8f0ca23e4876672e95a103f51 (patch) | |
tree | b5d85692c5d9c6d168093a44bbddc10431aa366c /lib/solidus_subscriptions | |
parent | 5081ffc17562fa90edf0f2a8dfa0d03991480362 (diff) |
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.
Diffstat (limited to 'lib/solidus_subscriptions')
-rw-r--r-- | lib/solidus_subscriptions/processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |