mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-10-25 17:42:08 +08:00
8 lines
493 B
Bash
8 lines
493 B
Bash
#!/usr/bin/env bash
|
||
# tasks HTTP 示例:默认预检后逐文件上传,轮询并逐文件保存结果到 RESULT_DIR。
|
||
# SEND_HASH=0 可省略 hash;TASK_ID=... 恢复原任务;每个输入都先通过 JSON 清单预检。
|
||
# 成功退出 0,部分成功退出 2,失败退出 1,轮询预算耗尽退出 124。
|
||
set -euo pipefail
|
||
TASK_SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
|
||
exec "${MINERU_PYTHON:-python3}" "$TASK_SCRIPT_DIR/http_task_example.py" "$@"
|