diff --git a/endpoints/api/build.py b/endpoints/api/build.py index 1456ce8b0..f67939576 100644 --- a/endpoints/api/build.py +++ b/endpoints/api/build.py @@ -77,7 +77,7 @@ def build_status_view(build_obj): if datetime.datetime.utcnow() - heartbeat > datetime.timedelta(minutes=1): phase = database.BUILD_PHASE.INTERNAL_ERROR - # If the phase is internal error, return 'error' instead of the number if retries + # If the phase is internal error, return 'error' instead if the number of retries # on the queue item is 0. if phase == database.BUILD_PHASE.INTERNAL_ERROR: retry = build_obj.queue_id and dockerfile_build_queue.has_retries_remaining(build_obj.queue_id)