fix(factor): 首班 NAS 二次修复——双 runner stage1 补 --report-dir 绝对路径(容器 -w /app 只读挂载下缺省相对 reports 建目录即 Errno30;VPS 侧 cwd 巧可写但显式化) [vps] [no-doc]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user