Wait after exceptions to slow down retries

This commit is contained in:
clerie 2023-06-17 22:38:23 +02:00
parent e598684837
commit 6c391dc9bb

View File

@ -218,6 +218,7 @@ class Dect:
pass pass
self.c = None self.c = None
time.sleep(2)
logger.info("requeue failed task") logger.info("requeue failed task")
self.fp.queues["dect"].put(msg) self.fp.queues["dect"].put(msg)