Handle SIGTERM (and SIGINT) to stop the HTTP server cleanly instead of being killed after Docker's grace period, so `docker compose down` returns in ~1s and the queue, HTTP clients and database are closed properly. shutdown() runs on a helper thread since it must not run on the serving thread. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| radieo | ||
| Dockerfile | ||
| requirements.txt | ||