summaryrefslogtreecommitdiff
path: root/bin/rails-engine
diff options
context:
space:
mode:
authorNicolò€ Rebughini <nicolo.rebughini@gmail.com>2021-02-26 10:06:09 +0100
committerNicolò€ Rebughini <nicolo.rebughini@gmail.com>2021-02-26 15:19:34 +0100
commit580fa7b2c62dba52fce7fb87def9eb1254507534 (patch)
tree601a11ab51054b776737e009e9000e86cb5b6d70 /bin/rails-engine
parentcfcb35e8b1211d7aac66c709610c1cdc707c5db8 (diff)
Move subscription processing to background jobs
This change moves the processing of individual subscriptions to their own isolated jobs. The tasks of these individual jobs will be: - Deactivate/Cancel subscriptions pending one of those operations - Clear any past failed installment if it's configured to do so - Create a new installment for the subscription cycle - Enqueue a job to process any actionable installment for the subscription Given we've moved the concern of queueing the installment processing, that part can be removed safely from the main processor job. The final part of the change also touches the main processor job, whose task is now to collect any actionable subscription and any subscription with an actionable installment to enqueue them for individual processing.
Diffstat (limited to 'bin/rails-engine')
0 files changed, 0 insertions, 0 deletions