Merge branch 'bagger' of https://bitbucket.org/yackob03/quay into bagger
This commit is contained in:
commit
25b5062bb6
3 changed files with 5 additions and 5 deletions
|
@ -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):
|
||||
|
|
|
@ -1 +1 @@
|
|||
gunicorn -c conf/gunicorn_local.py application:application
|
||||
gunicorn -c conf/gunicorn_local.py application:application
|
|
@ -1,2 +1 @@
|
|||
#!/bin/sh
|
||||
TEST=true python -m unittest discover
|
||||
|
|
Reference in a new issue