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

Fix TaskResult IDs skipped in Task Results #303

Merged
merged 10 commits into from
Dec 12, 2024
Merged

Conversation

jhazentia
Copy link
Member

  • Added sleep after creating healthcheck file
  • Added check and warning for task id mismatch
  • Stops scheduler thread after triggering restart
  • Reset next task id if needed when starting scheduler (this may not be needed if ASYNC_CALLBACK is disabled)

@jhazentia jhazentia marked this pull request as ready for review December 10, 2024 21:39
@jhazentia jhazentia requested a review from dboulware December 10, 2024 21:39
@@ -241,6 +251,7 @@ def _finalize_task_result(self, task_result, started, finished, status, detail):
task_result.save()

with self.task_status_lock:
self.last_status = status
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't set last_status before the check

Copy link
Contributor

@dboulware dboulware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See in line comment.

@jhazentia jhazentia merged commit 19aff8d into master Dec 12, 2024
5 checks passed
@jhazentia jhazentia deleted the debug_task_id_skip branch December 12, 2024 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants