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

Nonexistent status "stopping" in clearml_check_canceled() #26

Closed
mshannon-sil opened this issue Aug 29, 2023 · 2 comments · Fixed by #57
Closed

Nonexistent status "stopping" in clearml_check_canceled() #26

mshannon-sil opened this issue Aug 29, 2023 · 2 comments · Fixed by #57
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@mshannon-sil
Copy link
Collaborator

@johnml1135 @ddaspit In machine/jobs/build_nmt_engine.py/run()/clearml_check_canceled(), there is the following line: if task.get_status() in {"stopped", "stopping"}:. However, according to the clearml task documentation, the only values for TaskStatusEnum are [“created”, “in_progress”, “stopped”, “closed”, “failed”, “completed”, “queued”, “published”, “publishing”, “unknown”]. There is no stopping status listed here. Should I go ahead and remove the check for the stopping status?

@mshannon-sil mshannon-sil added bug Something isn't working invalid This doesn't seem right labels Aug 29, 2023
@mshannon-sil mshannon-sil self-assigned this Aug 29, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Serval Aug 29, 2023
@johnml1135
Copy link
Collaborator

@ddaspit - I will defer to you.

@ddaspit
Copy link
Contributor

ddaspit commented Aug 30, 2023

I'm sure there was a reason why I checked for stopping, I just can't remember why. Maybe I encountered it in my testing. The only thing I can find is that the status_message gets set to stopping when task cancellation is first triggered. Here we are checking get_status() and not the status_message, so it shouldn't ever get set to stopping. If we remove it, we need to make sure that build cancellation still works. There are two ways that you can cancel a NMT build: from the Serval API and from the ClearML UI.

@mshannon-sil mshannon-sil linked a pull request Nov 9, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from 🆕 New to ✅ Done in Serval Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants