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

bug(GracePeriod) - Make grace period update async for increased reliability #3154

Merged
merged 4 commits into from
Feb 10, 2025

Conversation

nudded
Copy link
Contributor

@nudded nudded commented Feb 7, 2025

Description

The grace period update service was not built to deal with many (>100k) draft invoices. This means that some issuing_dates could be set incorrectly if the request timed out. This PR moves the update to an asynchronous job.

For idempotency reasons it's important to store the applied_grace_period on the invoice, this way we can be certain that we're not running the job twice.

@nudded nudded force-pushed the refactor-grace-period-saving branch from 4c00a51 to 48afa5b Compare February 7, 2025 14:18
@nudded nudded force-pushed the refactor-grace-period-saving branch from 1d45cfa to f916582 Compare February 10, 2025 08:58
@nudded nudded merged commit e677224 into main Feb 10, 2025
6 checks passed
@nudded nudded deleted the refactor-grace-period-saving branch February 10, 2025 09:51
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