From 6b3eb52d17eab1ea5fc5b051e90b1d9e155cceaf Mon Sep 17 00:00:00 2001 From: Sergi Almacellas Abellana Date: Tue, 24 Mar 2020 10:02:58 +0100 Subject: [PATCH] Stop cron database retry after successful execution issue9170 review297311002 --- trytond/ir/cron.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trytond/ir/cron.py b/trytond/ir/cron.py index a6f9669387..b4cc48d3ac 100644 --- a/trytond/ir/cron.py +++ b/trytond/ir/cron.py @@ -139,7 +139,7 @@ class Cron(DeactivableMixin, ModelSQL, ModelView): and count): continue logger.error('Running cron %s', cron.id, exc_info=True) - break + break while transaction.tasks: task_id = transaction.tasks.pop() run_task(db_name, task_id)