« All posts

The Silent Socket: A Gemini-TTS Batch That Hanged Indefinitely

A silent socket caused a batch process to hang indefinitely. The fix involved adding timeouts to detect stalls.

In a text-to-speech job, a silent socket caused the process to stall without errors. The retry mechanism failed to activate, leading to a frozen batch. The solution was to race each call against a deadline, turning hangs into detectable errors and allowing the process to self-recover.