Tweak comments

This commit is contained in:
Stéphane Bidoul 2021-10-28 19:09:03 +02:00
parent b13e0dc8b1
commit c719e90e6c
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -91,8 +91,8 @@ class Build(BaseModel):
"""Mark a build for startup. """Mark a build for startup.
This is done by setting the runboat/todo annotation to 'start'. This is done by setting the runboat/todo annotation to 'start'.
This will in turn let the starter process it when there is The starter process will then start it when there is available
available capacity. capacity.
""" """
await k8s.patch_deployment( await k8s.patch_deployment(
self.deployment_name, self.deployment_name,
@ -108,7 +108,8 @@ class Build(BaseModel):
async def scale(self, replicas: int) -> None: async def scale(self, replicas: int) -> None:
"""Start a build. """Start a build.
Set replicas to 1, and reset todo. Set replicas, reset todo annotation, and set last-scaled
annotation.
""" """
_logger.info(f"Scaling {self.slug} ({self.name}) to {replicas}.") _logger.info(f"Scaling {self.slug} ({self.name}) to {replicas}.")
await k8s.patch_deployment( await k8s.patch_deployment(