gateway: single TTS warm path — drop the 10-min scheduler task, in-container loop every 15 min
The scheduler task ran audio_keepalive.py in its own container every 10 min in parallel with the in-container loop (8 min): two warm paths billing the same ping twice, and the scheduler container's access to 127.0.0.1:4000 and /app/data was never proven. Keep the proven in-container path only, at a 15-minute interval (sleep 900).
This commit is contained in:
1 parent
c43d45c455
commit
64d7e5afc5
4 files changed
+19
-22
No files matched your search
+5
-3
@@ -2,10 +2,12 @@
|
||||
"""Audio keep-alive: ping the Tinfoil TEE audio models through localhost LiteLLM
|
||||
so voice mode doesn't pay the ~24s cold-start after idle.
|
||||
|
||||
Runs INSIDE the gateway container via the Cloudron scheduler addon. Uses the
|
||||
LITELLM_MASTER_KEY already in the container env. TTS-only (STT pings cost
|
||||
Runs INSIDE the gateway container, invoked by the keep-alive loop in
|
||||
start.sh (every 15 min; the Cloudron scheduler task was removed
|
||||
2026-11-09 so the loop is the only warm path). Reads the master key from
|
||||
env or /app/data/.master_key. TTS-only (STT pings cost
|
||||
$0.01/request each; TTS $0.002 — see docs, keep-alive economics). Silent on
|
||||
success; prints + exits non-zero on failure so scheduler logs capture it.
|
||||
success; prints + exits non-zero on failure so keepalive.log captures it.
|
||||
"""
|
||||
import json, os, urllib.request, urllib.error, sys
|
||||
|
||||
|
||||
Reference in new issue
Block a user