← 返回
未分类 中文

job-status

HPC/AI job status query skill. Fetches job status information by jobId from a specific API endpoint and parses the jobState field from the JSON response. **U...
HPC/AI 作业状态查询技能。通过 jobId 从特定 API 端点获取作业状态信息,并解析 JSON 响应中的 jobState 字段。
bylikai bylikai 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 411
下载
💾 0
安装
1
版本
#latest

概述

Job Status Query Skill

🎯 Function Overview

This skill queries HPC/AI computing job status information. It accesses the API with the provided jobId, retrieves detailed job information, and extracts the key status field.

🔧 Technical Implementation

  • API Endpoint: http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}
  • Response Format: JSON
  • Key Field: data.jobState
  • Error Handling: Network timeout, API errors, JSON parsing errors

📋 Quick Start

Method 1: Natural Language Call

User: Query job status, jobId is 15000
Assistant: Querying job 15000 status...

Method 2: Parameterized Call

{
  "jobId": "15000"
}

🚀 Usage Scenarios

Scenario 1: Query Single Job Status

{
  "jobId": "15000"
}

Scenario 2: Batch Job Status Query

User: Query status for jobs 15000, 15001, 15002

Scenario 3: Monitor Job Completion

User: Check if job 15000 is completed

🔍 Return Status Description

Common jobState values:

  • PENDING: Job is queued
  • RUNNING: Job is running
  • COMPLETED: Job completed successfully
  • FAILED: Job execution failed
  • CANCELLED: Job was cancelled
  • TIMEOUT: Job timed out

⚠️ Notes

  1. jobId Format: Must be a valid job ID
  2. Network Connectivity: Must be able to access www.aicnic.cn
  3. API Limits: Be aware of API rate limits
  4. Error Handling: Network errors or invalid jobId will return appropriate error messages

📊 Example Responses

Successful response:

{
  "success": true,
  "jobId": "15000",
  "status": "COMPLETED",
  "details": {
    "jobState": "COMPLETED",
    "endTime": "2024-12-09T09:30:10",
    "id": 20452
  },
  "message": "Job query successful",
  "timestamp": "2026-03-19T06:30:00Z"
}

Error response:

{
  "success": false,
  "jobId": "99999",
  "error": "Job not found or access failed",
  "message": "API returned error or network connection failed",
  "timestamp": "2026-03-19T06:30:30Z"
}

🔗 Related Skills

  • System Monitoring: Can be combined with system monitoring skills
  • Notification Alerts: Can trigger notifications on job status changes
  • Log Recording: Record job status history

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 21:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,894
business-ops

task-status

bylikai
从AICNIC作业管理系统查询任务状态。当用户需要检查任务状态、获取作业信息或提及作业时使用此技能。
★ 0 📥 578
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,614