backfiller: Update node list from database more often

5min is a long time when we want to pull a node from circulation,
and it's a very lightweight operation. So let's say 30 seconds.
pull/352/head
Mike Lang 1 year ago
parent 51a2ef35cc
commit 4e51c3d6b7

@ -240,7 +240,7 @@ class BackfillerManager(object):
delete hours older than start. The deletion is handled by the Manager as delete hours older than start. The deletion is handled by the Manager as
having the Workers do it could lead to race conditions.""" having the Workers do it could lead to race conditions."""
NODE_INTERVAL = 300 #seconds between updating list of nodes NODE_INTERVAL = 30 #seconds between updating list of nodes
def __init__(self, base_dir, channels, qualities, extras=[], static_nodes=[], def __init__(self, base_dir, channels, qualities, extras=[], static_nodes=[],
start=None, delete_old=False, run_once=False, node_file=None, start=None, delete_old=False, run_once=False, node_file=None,

Loading…
Cancel
Save