From 67144e0ad8d867850634d32a3b4344d700a5337c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 12 Jul 2022 16:28:55 +0200 Subject: [PATCH] Revert "PaymentBackend: skip poll faster if there is no transaction (#66487)" This reverts commit 0ebe6d8233fa39812b7a35aa2a29f9998ca157f6. --- combo/apps/lingo/models.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/combo/apps/lingo/models.py b/combo/apps/lingo/models.py index c214f718..03318c81 100644 --- a/combo/apps/lingo/models.py +++ b/combo/apps/lingo/models.py @@ -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():