Skip to content

Add timeout to immediate tasks #5930

Description

@pedro-psb

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions