GuidesRecipesAPI ReferenceChangelogDiscussions
Log In

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

ParameterTypeDescriptionExample
modelstr
Model
A model identifier assigned by Modzy or a preloaded model object.'ed542963de'
versionstrThe model’s version number. It follows the semantic versioning format.'0.0.1'
min_enginesintThe minimum number of processing engines a model’s version can run. It is a positive integer or 0.0
max_enginesintThe 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
timeoutintTime 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_rateintIf 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