lhm-poll-status
БесплатноЗапускает вложенные скриптыНе проверенPolls the execution status of an LHM data validation task until the task reaches a terminal state or times out.
от aliyun★ 303 звезды на GitHubОб этом скилле
lhm-poll-status
Polls the execution status of an LHM data validation task until the task reaches a terminal state (STOPPED / FAILED / FINISHED) or the timeout is reached.
Steps
- Parse the command-line arguments (task-id, batch-id, region, timeout-sec, interval-sec, etc.).
- Call
build_client_from_config()to build the LHM client (the network layer goes through the aliyun CLI, read from data_validation_config.yaml, with CLI arguments taking precedence). - Call
poll_exec_status()to poll the task status; redirectsys.stdoutto capture the log prints inside the common functions and avoid polluting stdout. - If the status reaches a terminal state, output
{"ok": true, "exec_status": <int>, "exec_status_text": "..."}. - If it times out, output
{"ok": false, "exec_status": -1, "reason": "timeout"}and exit(1).
Pitfalls
--task-idand--batch-idmust be provided together; missing either one causes the API query to fail.- Long-running batch tasks may require increasing
--timeout-sec; the default of 1800 seconds may not be enough. - Credential precedence: command-line arguments > data_validation_config.yaml (~/.lhm/data_validation_config.yaml) > environment variables.
- The common functions use
printinternally for polling logs; the script captures them viaio.StringIOand writes them to stderr, so stdout contains only the final JSON.
Verification
For a normally completed batch, stdout should output something like:
{"ok": true, "exec_status": 4, "exec_status_text": "FINISHED"}For the timeout scenario, stderr should output:
{"ok": false, "exec_status": -1, "reason": "timeout"}Running
python -m py_compile atomic-skills/lhm-poll-status/scripts/run.pyproduces no syntax errors.
Input/Output Examples
python atomic-skills/lhm-poll-status/scripts/run.py \
--task-id 12345 \
--batch-id 67890 \
--region hangzhou \
--timeout-sec 1800 \
--interval-sec 5
Successful output:
{"ok": true, "exec_status": 4, "exec_status_text": "FINISHED"}
Установить lhm-poll-status в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lhm-poll-status?
Polls the execution status of an LHM data validation task until the task reaches a terminal state or times out.
Как установить скилл lhm-poll-status?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lhm-poll-status запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic