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

Add Job.shutdownIfCompleted API #1033

Merged

Conversation

splhack
Copy link
Contributor

@splhack splhack commented Sep 13, 2021

This PR is adding Job.shutdownIfCompleted API as a workaround for #1014.

We observed several times FrameCompleteHandler doesn't set Job finished, most likely due to some bad state of database. We should fix the database issue, however, there is no ways to mark Job succeeded from outside of OpenCue even though all frames are marked succeeded.

Job.shutdownIfCompleted is a safe API to have Cuebot reevaluate whether the Job is completed or not, and shutdown it if it is completed.

Copy link
Collaborator

@bcipriano bcipriano left a comment

Choose a reason for hiding this comment

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

Change LGTM, could you do a sync against master?

@splhack splhack force-pushed the shutdown-job-if-completed branch from 6bdad7a to 99599c4 Compare December 14, 2021 18:34
@splhack
Copy link
Contributor Author

splhack commented Dec 14, 2021

@bcipriano sure, rebased onto master.
Still potentially it will conflict on VERSION.in bump up.

@bcipriano bcipriano merged commit 9e03b95 into AcademySoftwareFoundation:master Jan 17, 2022
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