Managing Pool Resizing at service side (#107)

This commit is contained in:
Anshuman Goel
2020-10-13 11:04:26 -07:00
committed by GitHub
parent ab43890615
commit 7f0c25e2da
17 changed files with 319 additions and 40 deletions

View File

@ -812,8 +812,14 @@ class Pool(Endpoint):
unmanaged: bool = False,
arch: enums.Architecture = enums.Architecture.x86_64,
) -> models.Pool:
"""
Create a worker pool
:param str name: Name of the worker-pool
"""
self.logger.debug("create worker pool")
managed = not unmanaged
return self._req_model(
"POST",
models.Pool,
@ -823,6 +829,7 @@ class Pool(Endpoint):
"arch": arch,
"managed": managed,
"client_id": client_id,
"autoscale": None,
},
)