Invoices: Increase retry interval (#5640)

e.g. Invopop states that receipt confirmation in italy can take 24h
This commit is contained in:
Raphael Michel
2025-11-19 12:30:37 +01:00
committed by GitHub
parent e997ca4242
commit 4dc5bbae06

View File

@@ -696,7 +696,7 @@ def retry_stuck_invoices(sender, **kwargs):
with transaction.atomic():
qs = Invoice.objects.filter(
transmission_status=Invoice.TRANSMISSION_STATUS_INFLIGHT,
transmission_date__lte=now() - timedelta(hours=24),
transmission_date__lte=now() - timedelta(hours=48),
).select_for_update(
of=OF_SELF, skip_locked=connection.features.has_select_for_update_skip_locked
)