Revert "PaymentBackend: skip poll faster if there is no transaction (#66487)"

This reverts commit 0ebe6d8233.
This commit is contained in:
Frédéric Péters 2022-07-12 16:28:55 +02:00
parent 0ebe6d8233
commit 67144e0ad8
1 changed files with 0 additions and 3 deletions

View File

@ -257,9 +257,6 @@ class PaymentBackend(models.Model):
status__in=Transaction.RUNNING_STATUSES,
).order_by('pk')
last_pk = -1
# skip fast in order to save some resources on database
if not transactions.exists():
return
while True:
# lock each transaction before trying to poll it
with atomic():