Health probes can create harm
A paid synthetic request can consume credits, create private assets and amplify an outage through repeated restarts or retries. A liveness probe should answer a narrow local question, while deeper operational checks use non-mutating evidence and separate alerting.
What to do next
- 01
Define liveness narrowly
Check the application's event loop or an equivalent local progress signal without external generation. Keep the endpoint fast and bounded, and exclude expensive media processing or large database scans from its critical path.
- 02
Separate dependency observation
Track database connectivity, queue lag and documented model readiness through appropriate checks that do not submit creative work. Label those results as dependency health rather than automatically declaring the process itself dead.
- 03
Test outage behavior
Simulate the upstream being unavailable while the process remains responsive. Confirm liveness stays healthy, alerts identify the dependency problem and the platform does not repeatedly restart every otherwise functioning worker.
A concrete example
Illustrative example: AISwapLab model readiness becomes unavailable. Your application pauses new dispatch and reports a dependency issue, while its local health endpoint still responds. No paid generation is created to decide whether the process is alive.
Before you call it ready
- Liveness never submits generation.
- Dependency failures have separate signals.
- Probe work is fast and bounded.
When to stop or choose another method
Stop using a paid end-to-end creative request as a recurring liveness check or a reason to restart every application instance.
