Add default destination setting for traceng + some checks.

This commit is contained in:
grossmj committed 2018-04-16 15:03:22 +08:00
1 parent 801547983a
commit 025441f027
4 files changed
+49 -10

No files matched your search

-5
View File
@@ -921,12 +921,7 @@ class Project:
Start all nodes
"""
pool = Pool(concurrency=3)
emit_warning = True
for node in self.nodes.values():
if node.node_type == "traceng" and emit_warning:
self.controller.notification.emit("log.warning", {"message": "TraceNG nodes must be started one by one"})
emit_warning = False
continue
pool.append(node.start)
yield from pool.join()