Skip to content
Snippets Groups Projects
Commit 6976ba5d authored by Tristan Maat's avatar Tristan Maat Committed by Tristan Van Berkom
Browse files

Issue #107: Stop attaching the child watcher multiple times

parent 315bfbfe
No related branches found
No related tags found
Loading
Pipeline #
......@@ -114,7 +114,6 @@ class Job():
# Wait for it to complete
self.watcher = asyncio.get_child_watcher()
self.watcher.attach_loop(self.scheduler.loop)
self.watcher.add_child_handler(self.pid, self.child_complete, self.element)
# shutdown()
......
......@@ -112,7 +112,10 @@ class Scheduler():
for queue in queues:
queue.attach(self)
# Ensure that we have a fresh new event loop, in case we want
# to run another test in this thread.
self.loop = asyncio.new_event_loop()
asyncio.set_event_loop(self.loop)
# Add timeouts
if self.ticker_callback:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment