From 6c391dc9bb050f91a2ca068c0b7734fa098531a0 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 17 Jun 2023 22:38:23 +0200 Subject: [PATCH] Wait after exceptions to slow down retries --- fieldpoc/dect.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fieldpoc/dect.py b/fieldpoc/dect.py index fa63c63..67dadcd 100644 --- a/fieldpoc/dect.py +++ b/fieldpoc/dect.py @@ -218,6 +218,7 @@ class Dect: pass self.c = None + time.sleep(2) logger.info("requeue failed task") self.fp.queues["dect"].put(msg)