job-status
by @bylikai
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...
clawhub install job-statusπ About This Skill
name: job-status description: | 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.
Use this skill when: (1) Need to query HPC/AI computing job status (2) User provides a jobId parameter (3) Need to get job status (e.g., RUNNING, COMPLETED, FAILED) (4) Need to monitor computing job progress alwaysActive: false metadata: openclaw: emoji: "β‘" category: "monitoring" author: "OpenClaw Assistant" version: "1.0.0"
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
http://www.aicnic.cn/jobs/api/jobs/infos/hpcai28/{jobId}data.jobStateπ 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, 15002Scenario 3: Monitor Job Completion
User: Check if job 15000 is completedπ Return Status Description
Common jobState values:
β οΈ 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"
}