Fixing clean_results and start_verifier
This commit is contained in:
parent
06e7b373e3
commit
fb357f8743
@ -359,9 +359,9 @@ class Verifier(object):
|
||||
else:
|
||||
pending.append(result)
|
||||
|
||||
results = pending
|
||||
self.results = pending
|
||||
errored = finished - successful
|
||||
return len(results), successful, errored
|
||||
return len(self.results), successful, errored
|
||||
|
||||
def verify_for_range(self, ending_max, callback=None):
|
||||
exists = _list_exists(ending_max=ending_max,
|
||||
|
@ -59,8 +59,13 @@ if __name__ == '__main__':
|
||||
with open(config_filename, "r") as f:
|
||||
config = json.load(f)
|
||||
|
||||
verifier = dbverifier.Verifier(config)
|
||||
process = Process(target=verifier.run)
|
||||
def make_and_start_verifier(config):
|
||||
# Gotta create it and run it this way so things don't get
|
||||
# lost when the process is forked.
|
||||
verifier = dbverifier.Verifier(config)
|
||||
verifier.run()
|
||||
|
||||
process = Process(target=make_and_start_verifier, args=(config,))
|
||||
process.start()
|
||||
signal.signal(signal.SIGINT, kill_time)
|
||||
signal.signal(signal.SIGTERM, kill_time)
|
||||
|
Loading…
x
Reference in New Issue
Block a user