gunicorn icon indicating copy to clipboard operation
gunicorn copied to clipboard

the worker was restart during the woker is running

Open sirpqp opened this issue 1 year ago • 2 comments

when the configration :max_requests=1000 and max_requests_jitter=100 was defined, at some time the log show:[2024-01-30 15:22:06 +0800] [101428] [INFO] Autorestarting worker after current request.

But the worker was restarted during the woker is running! i hope the worker never autorestart or the autorestart time without the worker is runing! how can i solve it?

sirpqp avatar Jan 30 '24 09:01 sirpqp

What exactly do you want to solve? Why are you setting max_requests in the first place?

(You should not generally be using the autorestart feature, it merely assists in mitigating known defects. You describe none such.)

pajod avatar Jan 31 '24 23:01 pajod

This looks like a dupe of https://github.com/benoitc/gunicorn/issues/3038 (which is a real concern by the way, "merely assisting" in mitigating unfixable mem leaks is a worthwhile feature).

zogzog avatar Feb 08 '24 09:02 zogzog

no activity since awhile. closing feel free to create a new ticket if needed.

benoitc avatar Aug 06 '24 16:08 benoitc