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

Update Task Status to "Errored" on Celery Timeout Exceedance #149

Open
3 tasks
vineetshar opened this issue Oct 30, 2024 · 2 comments
Open
3 tasks

Update Task Status to "Errored" on Celery Timeout Exceedance #149

vineetshar opened this issue Oct 30, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@vineetshar
Copy link
Member

Description:
Currently, when a parsing task exceeds the approved time limit, Celery terminates the task but does not update its status to "Errored." This leads to tasks appearing incomplete or stuck without indicating the timeout failure, which can hinder error tracking and debugging.

Proposed Solution:

  • Implement logic to detect when a task is killed due to exceeding the time limit and update its status to "Errored."
  • Ensure that all tasks handle timeouts gracefully, providing clear feedback on task status for easier monitoring and troubleshooting.

Tasks:

  • Add error handling in the task code to catch Celery timeouts and update the task status to "Errored."
  • Implement logging for timeout events to aid in debugging and tracking task failures.
  • Test to verify that tasks exceeding the time limit are properly marked as "Errored" in the system.

Acceptance Criteria:

  • Tasks that exceed the Celery time limit are automatically marked as "Errored."
  • Logging is in place to capture details of timeout occurrences.
@vineetshar vineetshar added the enhancement New feature or request label Oct 30, 2024
@Pratik-Sharma-Dev
Copy link

Can i work on this?

@vineetshar
Copy link
Member Author

@Pratik-Sharma-Dev sure, have you gone through the codebase? what's your plan of action?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants