Files
kevinveenbirkenbachandClaude Opus 5.5 69f00693fa fix(web-svc-libretranslate): end a recycled gunicorn worker without the shutdown hang
gunicorn --max-requests 250 recycles the LibreTranslate worker, whose interpreter shutdown then hangs until the arbiter reaps it after --timeout. PR 2876 LibreTranslate#0 rescue log, containers/libretranslate.log: 'Autorestarting worker after current request' at 06:38:26, 'WORKER TIMEOUT (pid:35)' at 07:18:27. files/python/gunicorn_worker_exit.py holds a worker_exit hook that, in the worker's own pid, flushes stdout and stderr and calls os._exit with the pending SystemExit code. The role stages it into the build context and the Dockerfile appends it to scripts/gunicorn_conf.py. The Playwright spec now crosses one recycle (251 requests), and test-design visit() skips the second goto when login already landed on the target. The hook is a workaround until LibreTranslate/LibreTranslate#1041 ships; removal is tracked in #2918.

🎯 Fix: 85 %
💥 Break: 5 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 81
🚦 Gate: ⛔ fix 85 % < 90

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 09:57:08 +00:00
..