Align runtime with platform demo strategy

This commit is contained in:
Codex
2026-07-27 18:52:55 +08:00
parent dd21ca1be2
commit 3eb3175794
5 changed files with 43 additions and 44 deletions

View File

@@ -8,8 +8,9 @@
平台运行时必须提供:
- `STRATEGY_ID`:当前策略 ID,提交任务时写入 `strategyId`。
- `MODELHUB_USER_ACCOUNT`:ModelHub 登录账号。
- `MODELHUB_USER_PASSWORD`:ModelHub 登录密码。
ModelHub 登录账号和密码按照当前部署约定固定在
`modelhub_pipeline_resumable.py` 中,不需要额外配置环境变量。
可选变量:
@@ -24,19 +25,18 @@
```powershell
$env:STRATEGY_ID="your-strategy-id"
$env:MODELHUB_USER_ACCOUNT="your-account"
$env:MODELHUB_USER_PASSWORD="your-password"
python app.py
python main.py
```
健康检查:
```text
GET http://127.0.0.1:8080/health
GET http://127.0.0.1:8080/
```
只要策略服务进程存活,该端点返回 HTTP 200。响应同时包含后台流水线的
运行状态,但不会返回账号、密码或令牌。
只要策略服务进程存活,`/health` 返回 HTTP 200。根路径返回策略 ID 和
后台流水线运行状态,但不会返回账号、密码或令牌。
## Docker
@@ -44,8 +44,6 @@ GET http://127.0.0.1:8080/health
docker build -t new-pipeline .
docker run --rm -p 8080:8080 \
-e STRATEGY_ID=your-strategy-id \
-e MODELHUB_USER_ACCOUNT=your-account \
-e MODELHUB_USER_PASSWORD=your-password \
new-pipeline
```