mirror of
https://github.com/pretix/pretix.git
synced 2026-08-22 12:42:00 +00:00
Invoices: Increase retry interval (#5640)
e.g. Invopop states that receipt confirmation in italy can take 24h
This commit is contained in:
@@ -696,7 +696,7 @@ def retry_stuck_invoices(sender, **kwargs):
|
|||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
qs = Invoice.objects.filter(
|
qs = Invoice.objects.filter(
|
||||||
transmission_status=Invoice.TRANSMISSION_STATUS_INFLIGHT,
|
transmission_status=Invoice.TRANSMISSION_STATUS_INFLIGHT,
|
||||||
transmission_date__lte=now() - timedelta(hours=24),
|
transmission_date__lte=now() - timedelta(hours=48),
|
||||||
).select_for_update(
|
).select_for_update(
|
||||||
of=OF_SELF, skip_locked=connection.features.has_select_for_update_skip_locked
|
of=OF_SELF, skip_locked=connection.features.has_select_for_update_skip_locked
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user