Skip to content

fix(charge): fix cascading for child charges #3788

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 9, 2025

Conversation

lovrocolic
Copy link
Collaborator

Context

This PR follows:

Updating a charge in a plan with a large number of override can cause Timeout error or lead to a memory error on Redis.

The main reason is:

  • The service will enqueue one job per child charge

Description

This PR is refactoring the logic to enqueue only one job responsible of the updates for all child charges.

@lovrocolic lovrocolic requested a review from vincent-pochet June 5, 2025 11:36
@lovrocolic lovrocolic marked this pull request as draft June 5, 2025 13:46
@lovrocolic lovrocolic marked this pull request as ready for review June 6, 2025 10:41
@lovrocolic lovrocolic merged commit 645cb66 into main Jun 9, 2025
14 checks passed
@lovrocolic lovrocolic deleted the refactor-plan-update-cascade branch June 9, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants