forked from CGM_Public/pretix_original
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():
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user