mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-19 09:13:28 +00:00
Add hard time limits to control tasks
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
from celery import shared_task
|
from celery import shared_task
|
||||||
|
|
||||||
|
|
||||||
@shared_task(name="do_accounting")
|
@shared_task(name="do_accounting", time_limit=60)
|
||||||
def do_accounting():
|
def do_accounting():
|
||||||
"""
|
"""
|
||||||
Does all accounting from the beginning of time
|
Does all accounting from the beginning of time
|
||||||
@ -179,7 +179,7 @@ def do_accounting():
|
|||||||
return result
|
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():
|
def compute_node_balance():
|
||||||
"""
|
"""
|
||||||
Queries LND for channel and wallet balance
|
Queries LND for channel and wallet balance
|
||||||
|
Reference in New Issue
Block a user