Only notify once that all results are up to date.

Before, this message was repeated once for every worker.
This commit is contained in:
Andrew Hamilton 2016-01-28 00:18:51 +00:00
parent 8cb4d08d46
commit 1f7fb7f6e4

3
vigil
View file

@ -842,13 +842,14 @@ class Runner:
try: try:
self.result = summary.get_closest_placeholder() self.result = summary.get_closest_placeholder()
except StopIteration: except StopIteration:
log.log_message("All results are up to date.")
self.result = None self.result = None
break break
with contextlib.suppress(ValueError): # Process was terminated with contextlib.suppress(ValueError): # Process was terminated
self.result.run(log, appearance_changed_event, self.worker, self.result.run(log, appearance_changed_event, self.worker,
self) self)
summary.completed_total += 1 summary.completed_total += 1
if summary.result_total == summary.completed_total:
log.log_message("All results are up to date.")
if self.is_being_tested and self.result.tool == tools.metadata: if self.is_being_tested and self.result.tool == tools.metadata:
os.kill(os.getpid(), signal.SIGINT) os.kill(os.getpid(), signal.SIGINT)
jobs_added_event.clear() jobs_added_event.clear()