Skip to content
New issue

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

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

Already on GitHub? # to your account

Add function for task maintenance #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sduenas
Copy link
Member

@sduenas sduenas commented Dec 13, 2024

When the server starts running, it will check first the state of the tasks, fixing any problem found.

This function allows to find a list of tasks that
share the same status.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
This function acts like a garbage collector checking if
there are inconsistencies in tasks and trying to fix
these problems. For example, a task has a RUNNING status
but there's no job running. In this case, the function
will be re-schedule again the task creating a new job.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
The maintenance tasks will ensure that the status of the
tasks are in a consistent state.

Signed-off-by: Santiago Dueñas <sduenas@bitergia.com>
@sduenas sduenas requested a review from jjmerchante December 13, 2024 16:12
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant