Compute
The node pools now (any user), and their node-size overrides (platform admins).
Access it as client.compute on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.
Methods
All methods
delete_pre_warmed
delete_pre_warmed(workload_type: str) -> None
Remove a workload pool's override, restoring its saved Compute settings.
Parameters
workload_type(str): The pool, as forset_pre_warmed.
Raises
PermissionDeniedError: You are not a platform admin.ValidationError: An unknown pool.
list_gpu_options
list_gpu_options() -> list[GpuOption]
List the GPU types and counts a workload may use (read-only, any user).
These are the only GPU types the admin Compute selection provides. Every
create, deploy and start that names a gpu_type (environments,
workspaces, jobs, apps, add-ons, models, fine-tuning, AutoML, workflows)
refuses any other with a 400 ValidationError naming
the available ones. Leave gpu_type out (Auto) where it is optional.
Returns
list[GpuOption]: Each GPU type and count, with the smallest machine carrying it.
list_pools
list_pools() -> list[ComputePool]
List the node pools as they are now (read-only, any user).
Each pool says what it may start (its machine families, sizes,
generation floor and capacity types), allowed_sizes (every
machine type it may start, with the most CPU (max_cpu), memory
(max_memory_gib), disk (max_disk_gib) and GPUs (max_gpus)
one workload can be given on it), and capacity: its machines now, what your
organization's workloads on them request (a platform admin: every
organization's) and your workloads waiting for a machine, with why.
A workspace runs in user-workspaces, a job run in user-jobs
(ai with a GPU, general on spot).
A workload's size is its whole size (Strongly's helper services beside
it come out of it, never on top). Every create, deploy, start and
resize (workspaces, jobs, apps, add-ons, self-hosted models,
fine-tuning, workflow workers) refuses a CPU, memory, GPU count or disk
above the largest allowed_sizes entry with HTTP 400 naming the
resource and both figures, e.g. "A workspace cannot start: 100 GiB
disk asked; the largest machine allowed gives one workload 88 GiB."
Check it before choosing a large size.
Returns
list[ComputePool]: Every pool.
list_pre_warmed
list_pre_warmed() -> dict[str, PreWarmedPool]
Return every workload pool's node-size override.
Returns
dict[str, PreWarmedPool]: Each pool's override, by pool name; a pool never overridden shows its defaults, disabled.
Raises
PermissionDeniedError: You are not a platform admin.
set_pre_warmed
set_pre_warmed(workload_type: str, *, enabled: bool, count: int, instance_category: str, instance_size: str) -> PreWarmedPool
Set a workload pool's node-size override.
Parameters
workload_type(str): The pool:"general","ai","mcp","user-addons","user-workspaces","user-jobs"or"user-apps".enabled(bool):Truepins the pool's nodes;Falsekeeps the values without applying them.count(int): The number of nodes, 1 to 5 (stored with the override).instance_category(str): The instance family, such as"m","c"or"g"; one the pool allows.instance_size(str): The smallest node size, from"small"up to the pool's maximum ("medium","large","xlarge","2xlarge"and so on).
Returns
PreWarmedPool: The pool's override as saved, aspre_warmedshows it.
Raises
PermissionDeniedError: You are not a platform admin.ValidationError: An unknown pool, or a count, family or size the pool refuses.