lingo: limit async payment notification to a few hours (#23188)
This commit is contained in:
parent
69ac9adf88
commit
39ef627bab
|
@ -33,7 +33,8 @@ class Command(BaseCommand):
|
|||
for item in BasketItem.objects.filter(
|
||||
notification_date__isnull=True,
|
||||
cancellation_date__isnull=True,
|
||||
payment_date__lt=now-datetime.timedelta(minutes=5)):
|
||||
payment_date__lt=now-datetime.timedelta(minutes=5),
|
||||
payment_date__gt=now-datetime.timedelta(minutes=300)):
|
||||
try:
|
||||
item.notify_payment()
|
||||
except:
|
||||
|
|
Loading…
Reference in New Issue