diff --git a/scripts/analyst-tunnel.sh b/scripts/analyst-tunnel.sh index 61cc06ac..4d760aff 100755 --- a/scripts/analyst-tunnel.sh +++ b/scripts/analyst-tunnel.sh @@ -12,4 +12,4 @@ port=${FF_DB_LOCAL_PORT:-15432} ip=$(ssh -o BatchMode=yes "$FF_DB_SSH" \ "docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}} {{end}}' $container" | cut -d' ' -f1) echo "tunnel 127.0.0.1:$port -> $container ($ip:5432); Ctrl-C to close" -exec ssh -o BatchMode=yes -o ExitOnForwardFailure=yes -N -L "$port:$ip:5432" "$FF_DB_SSH" +exec ssh -o BatchMode=yes -o ExitOnForwardFailure=yes -o ServerAliveInterval=30 -N -L "$port:$ip:5432" "$FF_DB_SSH" diff --git a/scripts/serve_flows.py b/scripts/serve_flows.py index f884cd92..3dd5ff2a 100644 --- a/scripts/serve_flows.py +++ b/scripts/serve_flows.py @@ -205,4 +205,7 @@ schedules=[CronSchedule(cron="*/15 * * * *", timezone=LON)], parameters={"batch_size": 18}, ), + # Coolify starts the new container before stopping the old one; pausing on + # shutdown would pause the schedules the new runner just registered. + pause_on_shutdown=False, )