client.models.get_model_processing_details

Retrieve the processing state details

client.models.get_model_processing_details(model, version)

Retrieve the processing details of a model and version. It includes engines, queued jobs, and queued inputs.

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.27'

Returns

{
  "identifier": "string",
  "version": "string",
  "deployed_at": "date-time",
  "engines": [
    {
      "created_at": "date-time",
      "name": "string",
      "ready": "boolean",
      "conditions": [
        "type": "string",
        "status": "string",
        "reason": "string",
        "message": "string"
      ]
    }
  ],  
  "inputs": {
    "queued": "integer"
  },
  "jobs": {
    "queued": "integer"
  },
  "model_deployment_state": {
    "has_error": "boolean",
    "ready": "boolean",
    "being_monitored": "boolean"
  },
  "situations": ["string"]
}

Examples

>>>status = client.models.get_model_processing_details('ed542963de', '0.0.27')
>>>status
None
>>>status = client.models.get_model_processing_details('07cda3cad0', '0.0.13')
>>>len(status.engines)
0
>>>status.inputs.queued
5

Did this page help you?