Merge branch 'bagger' of https://bitbucket.org/yackob03/quay into bagger

This commit is contained in:
Joseph Schorr 2014-11-20 17:32:57 -05:00
commit 25b5062bb6
3 changed files with 5 additions and 5 deletions

View file

@ -274,17 +274,18 @@ class BuildComponent(BaseComponent):
# Set the component back to a running state.
self._set_status(ComponentStatus.RUNNING)
@staticmethod
def _ping():
""" Ping pong. """
return 'pong'
def _on_ready(self, token):
if self._component_status != 'waiting':
LOGGER.warning('Build component with token %s is already connected', self.expected_token)
LOGGER.warning('Build component (token "%s") is already connected', self.expected_token)
return
if token != self.expected_token:
LOGGER.warning('Builder token mismatch. Expected: %s. Found: %s', self.expected_token, token)
LOGGER.warning('Builder token mismatch. Expected: "%s". Found: "%s"', self.expected_token, token)
return
self._set_status(ComponentStatus.RUNNING)
@ -339,7 +340,7 @@ class BuildComponent(BaseComponent):
def _timeout(self):
self._set_status(ComponentStatus.TIMED_OUT)
LOGGER.warning('Build component %s timed out', self.expected_token)
LOGGER.warning('Build component (token "%s") timed out', self.expected_token)
self._dispose(timed_out=True)
def _dispose(self, timed_out=False):

View file

@ -1 +1 @@
gunicorn -c conf/gunicorn_local.py application:application
gunicorn -c conf/gunicorn_local.py application:application

View file

@ -1,2 +1 @@
#!/bin/sh
TEST=true python -m unittest discover