Defered (can run on task worker) and non-defered (must run in api) immediate tasks should have a timeout value.
This safeguard is really more critical to API, but for consistency we should make the immediate tasks the same no matter where.
Gunicorn default response timeout is really high as a paramenter. We should set something around 0.5 to 5 seconds.
And include in the timeout error message that if a timeout error is being hit often, maybe that task shouldnt be immediate.
Follow up to: #5767 (comment)
Defered (can run on task worker) and non-defered (must run in api) immediate tasks should have a timeout value.
This safeguard is really more critical to API, but for consistency we should make the immediate tasks the same no matter where.
Gunicorn default response timeout is really high as a paramenter. We should set something around 0.5 to 5 seconds.
And include in the timeout error message that if a timeout error is being hit often, maybe that task shouldnt be immediate.
Follow up to: #5767 (comment)