fix(factor): 首班 NAS 二次修复——双 runner stage1 补 --report-dir 绝对路径(容器 -w /app 只读挂载下缺省相对 reports 建目录即 Errno30;VPS 侧 cwd 巧可写但显式化) [vps] [no-doc]
CI/CD / test (push) Successful in 44s
CI/CD / nas-deploy (push) Successful in 10s
CI/CD / nas-verify (push) Successful in 10s

This commit is contained in:
2026-10-04 09:57:14 +08:00
parent ff94b49372
commit f478d4b408
2 changed files with 2 additions and 2 deletions
@@ -44,7 +44,7 @@ if (-not (Test-Path $OUT_DIR)) { New-Item -ItemType Directory -Path $OUT_DIR -Fo
$stamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
Add-Content -Path $LOG -Value "=== $stamp factor-monthly start (as_of=$asof) ==="
& $PY -X utf8 -m sanguo_factor.monthly_batch --as-of $asof --registry $REGISTRY --eval-db $EVAL_DB --vnpy-db $VNDB *>> $LOG
& $PY -X utf8 -m sanguo_factor.monthly_batch --as-of $asof --registry $REGISTRY --eval-db $EVAL_DB --vnpy-db $VNDB --report-dir $OUT_DIR *>> $LOG
$rcBatch = $LASTEXITCODE
$stamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
Add-Content -Path $LOG -Value "=== $stamp stage1 monthly_batch exit=$rcBatch ==="
@@ -78,7 +78,7 @@ PY
-w /app \
sanguo_vnpy_v2:lock-aligned \
-m sanguo_factor.monthly_batch --as-of "$AS_OF" \
--registry "$REGISTRY" --eval-db "$EVAL_DB"
--registry "$REGISTRY" --eval-db "$EVAL_DB" --report-dir "$OUT_DIR"
rc_batch=$?
echo "=== $(date '+%F %T') stage1 monthly_batch exit=$rc_batch ==="
if [ "$rc_batch" -ne 0 ]; then