Skip to content

Commit

Permalink
check running
Browse files Browse the repository at this point in the history
  • Loading branch information
jadbin committed Jan 2, 2018
1 parent 3b026a7 commit 5fb0198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpaw/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def __init__(self, proj_dir=None, config=None):
self._is_running = False

def start(self):
if self._is_running:
return
asyncio.ensure_future(self.event_bus.send(events.cluster_start), loop=self.loop)
self._supervisor_future = asyncio.ensure_future(self._supervisor(), loop=self.loop)
self._start_future = asyncio.ensure_future(self._push_start_requests(), loop=self.loop)
Expand Down

0 comments on commit 5fb0198

Please sign in to comment.