devilry / devilry-django

Devilry project main repository
http://devilry.org
BSD 3-Clause "New" or "Revised" License
51 stars 24 forks source link

Gunicorn workers timeout for ZIP streams #1297

Closed torgeirl closed 2 months ago

torgeirl commented 4 months ago

Running Devilry 6.3 with Python 3.11 on a WM (not container), the Gunicorn workers streaming ZIP files (#1278) will sometimes timeout:

[CRITICAL] WORKER TIMEOUT (pid:414077)
[CRITICAL] WORKER TIMEOUT (pid:414078)
[INFO] Worker exiting (pid: 414077)
[INFO] Worker exiting (pid: 414078)
[ERROR] Worker (pid:414077) exited with code 1
[ERROR] Worker (pid:414077) exited with code 1.
[INFO] Booting worker with pid: 575558
[ERROR] Worker (pid:414078) was sent SIGKILL! Perhaps out of memory?

The comments in Gunicorn's code suggests the two workers exited due to different reasons (both ends of the elif was triggered).

espenak commented 2 months ago

Should be solved by the various updates to zip file generation etc.