Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timeout to immediate tasks #5930

Open
pedro-psb opened this issue Oct 23, 2024 · 0 comments
Open

Add timeout to immediate tasks #5930

pedro-psb opened this issue Oct 23, 2024 · 0 comments
Assignees

Comments

@pedro-psb
Copy link
Member

pedro-psb commented Oct 23, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant