client.models.update_processing_engines

Update processing engines

client.models.update_processing_engines(model, version, min_engines, max_engines, timeout = 0, poll_rate = 5)

Updates the minimum and maximum processing engines for a specific model identifier and version

Parameters

Parameter

Type

Description

Example

model

str
Model

A model identifier assigned by Modzy or a preloaded model object.

'ed542963de'

version

str

The model’s version number. It follows the semantic versioning format.

'0.0.1'

min_engines

int

The minimum number of processing engines a model’s version can run. It is a positive integer or 0.

0

max_engines

int

The maximum number of processing engines a model’s version can run. It is a positive integer or 0. max_engines must be >= min_engines.

1

timeout

int

Time in seconds to wait until processing engine is spun up. 0 means return immediately, 'None' means block and wait forever. Defaults to 0, which means no wait.

120

poll_rate

int

If timeout is nonzero, this value will determine the rate at which the state of the cluster is checked. Defaults to 5.

10

Examples

>>>client.models.update_processing_engines('ed542963de', '0.0.27', 1, 1)
>>>version = client.models.get_version('ed542963de', '0.0.27')
>>>version.processing.minimum_parallel_capacity
1

Did this page help you?