Add support for job delete operation#758
Merged
rigidit merged 9 commits intoJul 22, 2026
Merged
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds first-class support for deleting Azure Quantum jobs through the Workspace API, and wires that operation into the Cirq integration so cirq.Job.delete() uses the delete operation instead of cancel.
Changes:
- Add
Workspace.delete_job()that calls the underlying jobs clientdeleteoperation. - Update
azure.quantum.cirq.Job.delete()to invokeworkspace.delete_job(...). - Add a unit test intended to validate the new delete behavior.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| azure-quantum/azure/quantum/workspace.py | Introduces delete_job() API on Workspace calling the jobs delete operation. |
| azure-quantum/azure/quantum/cirq/job.py | Switches Cirq job deletion to use Workspace.delete_job() instead of cancellation. |
| azure-quantum/tests/test_workspace.py | Adds a new test case covering job delete behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
v-elegacheva
marked this pull request as draft
July 13, 2026 20:45
rigidit
reviewed
Jul 13, 2026
rigidit
reviewed
Jul 13, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
rigidit
reviewed
Jul 14, 2026
Remove outdated note about job deletion behavior.
v-elegacheva
marked this pull request as ready for review
July 21, 2026 20:11
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
Author
|
@microsoft-github-policy-service agree company="Akvelon" |
rigidit
self-requested a review
July 21, 2026 21:50
rigidit
approved these changes
Jul 21, 2026
rigidit
self-requested a review
July 21, 2026 22:22
rigidit
approved these changes
Jul 21, 2026
Contributor
Author
|
/azp run |
|
Commenter does not have sufficient privileges for PR 758 in repo microsoft/azure-quantum-python |
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
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.
adds support for job deletion