feat(web): add source-first Python autopilot and optimize provider waits
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-08 10:59:49 +08:00
parent a69e41457a
commit edcf0fef9a
29 changed files with 10149 additions and 412 deletions

View File

@@ -79,19 +79,8 @@ start_watchdog() {
}
start_product_migration() {
local pid_file="$CONTROL_DIR/web-product-migration.pid"
if test -f "$pid_file"; then
local product_pid
product_pid="$(tr -d '[:space:]' < "$pid_file")"
if test -n "$product_pid" && kill -0 "$product_pid" 2>/dev/null; then
printf 'product migration already running: %s\n' "$product_pid"
return
fi
mv "$pid_file" "$pid_file.stale-$(date +%s)"
fi
nohup setsid python3 "$ROOT_DIR/my-tools/run_web_product_migration.py" \
> "$CONTROL_DIR/web-product-migration.stdout.log" 2>&1 < /dev/null &
printf 'product migration launch pid: %s\n' "$!"
python3 "$ROOT_DIR/my-tools/run_web_product_migration.py" start \
--max-cycles "$SCHEDULER_MAX_ITERATIONS"
}
if test "$MIGRATION_MODE" = "source-verification"; then