From bd03770c60fb4c7dbca3eaaac160ffe0cb1dc370 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Fri, 5 May 2023 10:44:09 -0700 Subject: [PATCH] Add hard time limits to control tasks --- control/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control/tasks.py b/control/tasks.py index 650661e1..be0765de 100644 --- a/control/tasks.py +++ b/control/tasks.py @@ -1,7 +1,7 @@ from celery import shared_task -@shared_task(name="do_accounting") +@shared_task(name="do_accounting", time_limit=60) def do_accounting(): """ Does all accounting from the beginning of time @@ -179,7 +179,7 @@ def do_accounting(): return result -@shared_task(name="compute_node_balance", ignore_result=True) +@shared_task(name="compute_node_balance", ignore_result=True, time_limit=10) def compute_node_balance(): """ Queries LND for channel and wallet balance