Skip to content

Conversation

vincent-pochet
Copy link
Collaborator

Context

This PR follows #3747 and #3765

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

The main reasons is that the service will enqueue one job per child plan

Description

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

Note: The same logic will have to be applied to the update of child charges

@vincent-pochet vincent-pochet force-pushed the misc-organization-factory branch 2 times, most recently from fcf52be to c31949f Compare June 2, 2025 10:26
@vincent-pochet vincent-pochet force-pushed the misc-organization-factory branch from c31949f to 6fe9623 Compare June 2, 2025 10:28
@vincent-pochet vincent-pochet merged commit 0e35435 into main Jun 2, 2025
14 checks passed
@vincent-pochet vincent-pochet deleted the misc-organization-factory branch June 2, 2025 10:32
diegocharles pushed a commit that referenced this pull request Jun 2, 2025
## Context

This PR follows #3747 and
#3765

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

The main reasons is that the service will enqueue one job per child plan


## Description

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

Note: The same logic will have to be applied to the update of child
charges
lovrocolic added a commit that referenced this pull request Jun 9, 2025
## Context

This PR follows:
- #3747
- #3765
- #3767

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.
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.

3 participants