Skip to content

Deployment state#

The state of a deployment corresponds to the state of the predictor configured in it.

Note

Currently, only one predictor is supported in a deployment. Support for multiple predictors (the inference graphs) is coming soon.

Retrieval#

[source]

get_state#

Deployment.get_state()

Get the current state of the deployment

Returns

PredictorState. The state of the deployment.


Properties#

[source]

available_predictor_instances#

Available predicotr instances.


[source]

available_transformer_instances#

Available transformer instances.


[source]

condition#

Condition of the current state of predictor.


[source]

deployed#

Whether the predictor is deployed or not.


[source]

hopsworks_inference_path#

Inference path in the Hopsworks REST API.


[source]

internal_port#

Internal port for the predictor.


[source]

model_server_inference_path#

Inference path in the model server


[source]

revision#

Last revision of the predictor.


[source]

status#

Status of the predictor.


Methods#

[source]

describe#

PredictorState.describe()

Print a description of the deployment state


[source]

to_dict#

PredictorState.to_dict()