Chiude le sessioni idle abbandonate prima che occupino slot e scalino Hetzner.

Il sweeper ora termina le idle dopo 30 minuti (cron ogni 10), così non restano appese a tenere accesi i warm-spare.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-16 07:43:34 +02:00
co-authored by Cursor
parent 2db6541c91
commit cc9c4a1120
7 changed files with 134 additions and 7 deletions
+3 -2
View File
@@ -1,2 +1,3 @@
# Schedule CleanupExpiredSessionsJob hourly via host cron or Kamal:
# 0 * * * * cd /app && bundle exec rails runner "CleanupExpiredSessionsJob.perform_async"
# CleanupExpiredSessionsJob: host cron via infra/scripts/install_production_cron.sh
# */10 * * * * ... streams:cleanup_expired_sessions
# Env: STREAM_SESSION_IDLE_MINUTES (default 30), STREAM_SESSION_STALE_HOURS (default 6)