feat(web): add source-first Python autopilot and optimize provider waits
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user