AI开发平台MODELARTS-操作Execution:响应示例

时间:2024-04-30 18:34:11

响应示例

状态码: 201

OK

{
  "created_at" : "2022-08-25T17:01:52.490825+08:00",
  "name" : "execution-005",
  "execution_id" : "4dd2a2f5-bde2-45dd-af6b-5e5d570118d1",
  "description" : "",
  "status" : "running",
  "workspace_id" : "0",
  "workflow_id" : "bd0ac50e-69b1-4d20-ae38-abb221084fc6",
  "workflow_name" : "workflow-service-infer",
  "steps_execution" : [ {
    "created_at" : "2022-08-25T17:01:52.500034+08:00",
    "uuid" : "54979c30-cc48-4eaa-8b0f-b6eb6e000bb5",
    "step_name" : "service_step",
    "step_title" : "service_step",
    "status" : "wait_inputs",
    "duration" : 1,
    "events" : [ "2022-08-25 17:01:53 change status from init to wait_inputs" ],
    "policy" : { }
  } ],
  "duration" : 1,
  "events" : [ "2022-08-25 17:01:53 step service_step change status from init to wait_inputs" ],
  "data_requirements" : [ {
    "name" : "si_placeholder1",
    "type" : "model_list",
    "delay" : true,
    "conditions" : [ {
      "attribute" : "model_name",
      "operator" : "equal",
      "value" : "model_test444444222222"
    } ],
    "used_steps" : [ "service_step" ]
  }, {
    "name" : "si_placeholder2",
    "type" : "model_list",
    "delay" : true,
    "conditions" : [ {
      "attribute" : "model_name",
      "operator" : "equal",
      "value" : "model_test444444222222"
    }, {
      "attribute" : "envs",
      "operator" : "equal",
      "value" : {
        "infer_address" : "$ref/consumptions/service_step/service_output/access_address"
      }
    } ],
    "used_steps" : [ "service_step2" ]
  } ],
  "parameters" : [ {
    "name" : "schedule_KZ27",
    "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", "service_step2" ]
  }, {
    "name" : "placeholder_name",
    "type" : "str",
    "value" : "model_test4444",
    "used_steps" : [ "service_step", "service_step2" ]
  } ],
  "policies" : { }
}
support.huaweicloud.com/api-modelarts/CreateWorkflowExecutionsActions.html