Configure different timeouts in the gunner for different endpoints?

Gunicorn allows you to configure timeout for requests as shown in their documentation below. It looks like a global configuration for the whole application.

Is it possible to configure different timeouts for different endpoints? Perhaps overriding the default timeout for URL endpoints that are known to take a long time?

http://docs.gunicorn.org/en/stable/settings.html#timeout

Time-out

-t INT, --timeout INT

thirty

Workers who are silent for more than that many seconds are killed and restarted.

Typically set to thirty seconds. Just set it noticeably higher if you are confident about the implications for sync workers. For non-sync workers, this simply means that the workflow is still communicating and is not tied to the length of time it takes to process a single request.

+3


source to share





All Articles