HARMONY-2026: As a client, I want to cancel a job using harmony-py.#110
Merged
Conversation
chris-durbin
left a comment
Contributor
There was a problem hiding this comment.
I'm having issues right now with harmony-py preventing me from running the notebooks. I did see that there are a couple of cells that generate exceptions which cause the notebook to stop executing when you try to run the entire thing at once. We should update both of those cells to use try blocks and catch the exceptions.
Attempting to pause a completed job will result in an error
Attempting to resume a completed job will also result in an error
chris-durbin
approved these changes
Mar 26, 2025
chris-durbin
left a comment
Contributor
There was a problem hiding this comment.
I was able to test everything with cancel successfully after running make clean. Approved assuming we update those two cells to catch and display the exceptions rather than causing the notebook to error on those cells.
indiejames
approved these changes
Mar 27, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Jira Issue ID
HARMONY-2026
Description
Add support in harmony-py to cancel a job.
Add cancel job example in Jupyter notebook.
Fix broken job preview example in Jupyter notebook.
Local Test Steps
run
job_pause_resume.ipynbnotebookPR Acceptance Checklist