← 返回
未分类 中文

task-status

Query task status from the AICNIC job management system. Use this skill when the user needs to check task status, retrieve job information, or mentions a job...
从AICNIC作业管理系统查询任务状态。当用户需要检查任务状态、获取作业信息或提及作业时使用此技能。
bylikai bylikai 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 511
下载
💾 1
安装
1
版本
#latest

概述

Task Status Query

Overview

This skill is used to query the status of a specific task in the AICNIC job management system.

Usage

When the user needs to query a task status:

  1. Obtain the jobId parameter provided by the user
  2. Call the API to retrieve job information
  3. Parse and return the value of the jobState field

API Call

Request Format

GET http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}

Curl Example

curl -X GET "http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}" -H "accept: */*"

Response Format

The API returns a JSON response:

{
  "code": 0,
  "message": null,
  "data": {
    "id": 20452,
    "jobId": "15000",
    "jobState": "COMPLETED",
    ...
  }
}

Parsing Rules

Extract the following fields from the API response:

Field PathDescription
------------------------
data.jobStateTask status (e.g., COMPLETED, RUNNING, PENDING, etc.)
data.jobIdJob ID
data.jobNameJob name
data.startTimeStart time
data.endTimeEnd time

Workflow

  1. Receive Parameter: Get the jobId provided by the user
  2. Build URL: http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}
  3. Send Request: Send a GET request using curl or an HTTP client
  4. Parse Response: Parse the JSON response and extract the data.jobState field
  5. Return Result: Display the task status to the user

Example

Query task status for jobId 15000

curl -X GET "http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/15000" -H "accept: */*"

Response:

{
  "code": 0,
  "message": null,
  "data": {
    "jobId": "15000",
    "jobState": "COMPLETED",
    "endTime": "2024-12-09T09:30:10"
  }
}

Parsed Result: Task status is COMPLETED

Common Task States

  • COMPLETED - Completed
  • RUNNING - Running
  • PENDING - Pending
  • FAILED - Failed
  • CANCELLED - Cancelled

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 14:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Discord

steipete
当需要通过discord工具控制Discord时使用:发送消息、添加反应、发布或上传表情包、上传表情、创建投票、管理帖子/置顶/搜索、获取权限或成员/角色/频道信息,或在Discord私信或频道中处理管理操作。
★ 78 📥 38,066
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,307
it-ops-security

job-status

bylikai
HPC/AI 作业状态查询技能。通过 jobId 从特定 API 端点获取作业状态信息,并解析 JSON 响应中的 jobState 字段。
★ 0 📥 469