AI开发平台MODELARTS-更新Workflow Execution:响应示例

时间:2024-10-24 09:20:55

响应示例

状态码: 200

OK

{
  "created_at" : "2022-06-16T23:12:48.458022+08:00",
  "name" : "execution-056",
  "execution_id" : "fa412c98-6d94-42a2-891a-99cd1da93916",
  "description" : "",
  "status" : "stopped",
  "workspace_id" : "0",
  "workflow_id" : "f1642618-43eb-4ab1-a0b1-9cc584182c60",
  "workflow_name" : "workflow_model_service_no_modify_xiahou_copy",
  "steps_execution" : [ {
    "created_at" : "2022-06-16T23:12:48.466906+08:00",
    "uuid" : "5e8456bd-35ff-4cc9-9624-935c37dabe47",
    "instance_id" : "{\"model_id\":\"7d795a48-e646-43b0-b4cb-759454acaf2b\"}",
    "step_name" : "model_step",
    "step_title" : "model release",
    "status" : "completed",
    "duration" : 17,
    "inputs" : [ {
      "name" : "model_input",
      "type" : "obs",
      "data" : "$ref/data_requirements/model_input",
      "value" : {
        "object_type" : [ "DIRECTORY" ],
        "obs_url" : "/test-crq/train_output/"
      }
    } ],
    "outputs" : [ {
      "name" : "model_output",
      "type" : "model",
      "config" : {
        "model_id" : "7d795a48-e646-43b0-b4cb-759454acaf2b"
      }
    } ],
    "properties" : {
      "model_name" : "lh-xh",
      "model_type" : "TensorFlow"
    },
    "events" : [ "2022-06-16 23:12:49 change status from init to creating", "2022-06-16 23:12:51 change status from creating to created", "2022-06-16 23:12:51 change status from created to running", "2022-06-16 23:13:05 change status from running to completed" ],
    "policy" : { }
  }, {
    "created_at" : "2022-06-16T23:13:05.620354+08:00",
    "uuid" : "9b452016-cc7b-4bfe-snt9-f9d53dcb4cc1",
    "step_name" : "service_step",
    "step_title" : "service install",
    "status" : "stopped",
    "duration" : 1,
    "events" : [ "2022-06-16 23:13:06 change status from init to wait_inputs", "2022-06-16 23:16:13 change status from wait_inputs to stopped" ],
    "policy" : { }
  } ],
  "duration" : 204,
  "events" : [ "2022-06-16 23:12:49 step model_step change status from init to creating", "2022-06-16 23:12:51 step model_step change status from creating to created", "2022-06-16 23:12:51 step model_step change status from created to running", "2022-06-16 23:13:05 step model_step change status from running to completed", "2022-06-16 23:13:06 step service_step change status from init to wait_inputs", "2022-06-16 23:16:13 step service_step change status from wait_inputs to stopped" ],
  "data_requirements" : [ {
    "name" : "model_input",
    "type" : "obs",
    "conditions" : [ {
      "attribute" : "object_type",
      "operator" : "equal",
      "value" : "directory"
    } ],
    "value" : {
      "object_type" : [ "DIRECTORY" ],
      "obs_url" : "/test-crq/train_output/"
    },
    "used_steps" : [ "model_step" ]
  }, {
    "name" : "service_model",
    "type" : "model_list",
    "delay" : true,
    "conditions" : [ {
      "attribute" : "model_name",
      "operator" : "equal",
      "value" : "lh-xh"
    } ],
    "used_steps" : [ "service_step" ]
  } ],
  "parameters" : [ {
    "name" : "schedule_d5sm",
    "type" : "int",
    "format" : "schedule",
    "description" : "Set how long the deployed service will stop in hours, where -1 means the service will always run",
    "delay" : true,
    "used_steps" : [ "service_step" ]
  } ],
  "policies" : { }
}
support.huaweicloud.com/api-modelarts/UpdateWorkflowExecution.html