PyQS icon indicating copy to clipboard operation
PyQS copied to clipboard

Make LONG_POLLING_INTERVAL configurable

Open jhorman opened this issue 5 years ago • 2 comments

I would like to be able to have workers shutdown more quickly. Having this set to 20 when the queue is empty means slow deploys.

jhorman avatar Jul 11 '19 23:07 jhorman

Agreed. A PR would be very welcome. Setting this as a feature request.

spulec avatar Jul 12 '19 20:07 spulec

Would it not be more ideal if the polling would be interrupted when a SIGTERM signal is received? That way you would get the benefit of having the optimal long polling (with fewest possible requests) along with quick shutdowns.

I don't know how difficult that would be to achieve though.

Tenzer avatar Oct 12 '19 14:10 Tenzer