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

Tasks - add a max_duration field #121

Open
cedricfrancoys opened this issue May 17, 2024 · 0 comments
Open

Tasks - add a max_duration field #121

cedricfrancoys opened this issue May 17, 2024 · 0 comments

Comments

@cedricfrancoys
Copy link
Collaborator

Tasks - add a max_duration field

In some situations, a thread does not respond (a process runs for several hours) and, if there are tasks that require exclusive execution, they are put on hold.

Example:

  • Scenario where there is a critical error (PHP syntax or other): the task is created, the controller is called, the DB is modified (task marked as running), but the task never returns to idle.

Solution: add a max_duration or max_exec_duration field.
Beyond the allowed time, the associated PHP thread is killed and an alert is issued (in the targeted task logs).

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

No branches or pull requests

1 participant