lhm-rerun-failed
БесплатноЗапускает вложенные скриптыНе проверенReruns the failed tasks in an LHM data validation batch and returns the new batch ID.
от aliyun★ 303 звезды на GitHubОб этом скилле
lhm-rerun-failed
For a specified LHM data validation batch, filters by failure type and reruns, returning a new batch_id.
Steps
- Read the command-line arguments: original batch ID, failure type, and region.
- Before execution, run
lhm-common check --profile data-validationfirst to confirm the preconditions are met. - 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). - Redirect
sys.stdouttoio.StringIO, callrerun_failed()to get the new batch ID, then restore stdout. - Output JSON:
{"ok": true, "new_batch_id": <int>}.
Pitfalls
- stdout polluted by prints:
rerun_failed()prints[一键重跑] 新 batchId=...internally; stdout must be redirected, otherwise JSON parsing fails. - fail_type values: only 0 (failed only), 1 (failed + not passed), and 2 (failed + terminated) are supported; other values trigger an argparse error.
- Using task_id instead of batch_id: the rerun interface requires the original
batch_id; do not passtask_idby mistake. - Credentials: resolved through the default credential chain (environment variables / RAM Role /
~/.alibabacloud/credentials); the script never accepts AK/SK as command-line arguments.
Verification
python -m py_compile atomic-skills/lhm-rerun-failed/scripts/run.pypasses.- On success stdout is valid JSON, e.g.,
{"ok": true, "new_batch_id": 12346}. - On failure stderr outputs
{"ok": false, "error": "..."}and exit(1).
Input/Output Examples
python atomic-skills/lhm-rerun-failed/scripts/run.py \
--batch-id 12345 \
--fail-type 1 \
--region hangzhou
Output:
{
"ok": true,
"new_batch_id": 12346
}
Rerun failures only:
python atomic-skills/lhm-rerun-failed/scripts/run.py \
--batch-id 12345 \
--fail-type 0 \
--region hangzhou
Установить lhm-rerun-failed в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл lhm-rerun-failed?
Reruns the failed tasks in an LHM data validation batch and returns the new batch ID.
Как установить скилл lhm-rerun-failed?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lhm-rerun-failed запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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