Skip to content
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

fix(invoice): Finalize each invoice in a single job #1533

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

vincent-pochet
Copy link
Collaborator

Context

Some Clock::FinalizeInvoicesJob are failling with a BaseService::ValidationFailure: Validation errors: {:amount_cents=>["value_is_out_of_range"]} error.

Since all invoices are processed in a single jobs, it's preventing all invoices from being finalized automatically.

Description

This PR does not fix the root cause of the failed job (we first have to identify with invoice is impacted) but it processing each invoice in its own job, to make sure that a failure on an invoice does not impact the other invoices

@vincent-pochet vincent-pochet added Invoice Related to Invoices 🐞 Bug Something isn't working labels Dec 12, 2023
@vincent-pochet vincent-pochet self-assigned this Dec 12, 2023
@vincent-pochet vincent-pochet merged commit 08f4c94 into main Dec 12, 2023
6 checks passed
@vincent-pochet vincent-pochet deleted the fix-finalize-invoice-job branch December 12, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 Bug Something isn't working Invoice Related to Invoices
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants