-
Notifications
You must be signed in to change notification settings - Fork 49
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
Handle hard time limits on tasks #2290
Comments
So Celery enables to configure also soft_time_limit, that can be set to a little bit lower value than the hard time limit, that raises an exception, so that some cleanup can be done. But as for setting the logs and status, I still think this would be quite complicated to implement as the exception is raised from the task itself so we do not know the stage of the task when the exc happened. So this now happens for |
Sounds good to me (if there is a way to configure the limit per task type). Otherwise I think this issue can be closed in favor of #2323. |
This task should be exetuced much faster, it doesn't execute any user defined actions etc., therefore set the time limit lower than the global one (900s). Related to packit#2290
This task should be exetuced much faster, it doesn't execute any user defined actions etc., therefore set the time limit lower than the global one (900s). Related to packit#2290
A Celery task is killed after a timeout which is 900 seconds. If that happens, job statuses are no longer updated (so they usually stay in pending/running for good) and logs can be lost (for example logs from SRPM build in Sandcastle). Ideally in such case job status should be set to failed and logs preserved, if possible.
The text was updated successfully, but these errors were encountered: