Tweak comments
This commit is contained in:
parent
b13e0dc8b1
commit
c719e90e6c
1 changed files with 4 additions and 3 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue