mirror of
https://github.com/RoboSats/robosats.git
synced 2024-08-17 01:40:39 +03:00
Add hard time limits to control tasks
This commit is contained in:
parent
7e5c9bcb70
commit
bd03770c60
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user