make "submit_after" a configuratble option (config.ini)
This commit is contained in:
@@ -148,6 +148,7 @@ class Proxywatchd():
|
||||
self.mysqlite = None
|
||||
def __init__(self):
|
||||
config.load()
|
||||
global submit_after
|
||||
self.in_background = False
|
||||
self.threads = []
|
||||
self.stopping = threading.Event()
|
||||
@@ -159,7 +160,7 @@ class Proxywatchd():
|
||||
self.mysqlite.commit()
|
||||
self._close_db()
|
||||
|
||||
self.submit_after = 200 # number of collected jobs before writing db
|
||||
self.submit_after = config.submit_after # number of collected jobs before writing db
|
||||
self.jobs = []
|
||||
self.collected = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user