PHYBench

查询任务状态

根据任务ID和访问令牌查询评估任务的当前状态和进度

GET
/tasks/{task_id}

Path Parameters

task_idTask Id

Header Parameters

authorizationAuthorization

Bearer token (格式: 'Bearer ')

Response Body

curl -X GET "https://evaluate.phybench.cn/tasks/string" \  -H "authorization: string"
{
  "task_id": "task_12345abcde",
  "status": "RUNNING",
  "progress": 75,
  "queue_info": {
    "position": 0,
    "total_pending": 3,
    "estimated_wait_time": 0,
    "status": "running"
  },
  "created_at": "2024-01-01T12:00:00Z",
  "started_at": "2024-01-01T12:01:00Z"
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
{
  "details": {
    "expected": "application/json",
    "field": "file",
    "received": "text/plain"
  },
  "error": "validation_error",
  "message": "Invalid file format"
}