Ekat/Quantum: Add new update job operation - #10161
Open
v-elegacheva wants to merge 3 commits into
Open
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
necusjz,
wangzelin007 and
yonzhan
July 30, 2026 17:49
Contributor
|
Thank you for your contribution @v-elegacheva! We will review the pull request and get back to you soon. |
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
v-elegacheva
marked this pull request as ready for review
July 30, 2026 18:09
|
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
This PR introduces a new az quantum job update operation in the Quantum CLI extension, allowing users to update an existing job’s name, priority, and/or tags, and bumps the extension version accordingly.
Changes:
- Added
az quantum job updatecommand wiring, parameters, and help content. - Implemented the
job_updateoperation using the data-plane jobs client merge-patch update API and returning the refreshed job. - Added unit and live scenario test coverage for the new command and bumped extension version/history.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/quantum/setup.py | Bumps extension version to 1.0.0b20. |
| src/quantum/HISTORY.rst | Adds release note entry for the new job update command. |
| src/quantum/azext_quantum/tests/latest/test_quantum_jobs.py | Adds unit test for job_update and a live scenario update call. |
| src/quantum/azext_quantum/operations/job.py | Implements job_update operation (merge-patch + refresh). |
| src/quantum/azext_quantum/commands.py | Registers quantum job update command with transformer/validator. |
| src/quantum/azext_quantum/_params.py | Adds --job-priority and --job-tags arguments for quantum job update. |
| src/quantum/azext_quantum/_help.py | Adds help and examples for az quantum job update. |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Suppressed comments (1)
src/quantum/azext_quantum/tests/latest/test_quantum_jobs.py:257
- The new live scenario block exercises
--job-priorityand--job-tags, but it only asserts that the job name changed. To make this a true end-to-end validation of the update behavior (and avoid a false positive if the service ignores priority/tags), also assert the returnedpriorityandtagsfields match the requested values.
# Update the submitted job's name, priority, and tags, then confirm the change
updated_job = self.cmd(f'az quantum job update -j {results["id"]} --job-name "Updated job name" --job-priority High --job-tags tag1 tag2 -o json').get_output_in_json()
self.assertEqual(updated_job["name"], "Updated job name")
Add support for updating a submitted job's name, priority, and tags via the new JobUpdateOptions merge-patch operation. Includes command registration, parameters, help, unit test, and version bump to 1.0.0b20.
v-elegacheva
force-pushed
the
ekat/quantum-job-update
branch
from
August 4, 2026 20:03
c9c3426 to
e2c4e55
Compare
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
v-elegacheva
marked this pull request as ready for review
August 4, 2026 21:09
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
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.
🤖 PR Validation —⚠️ Review suggested
Summary
Adds a new
az quantum job updatecommand that lets users update a submitted job's name, priority, and/or tags after submission. This implements the CLI side of the merged Data Plane API Spec. Only the fields that user provides are sent in the patch,--job-priorityis validated against thePriorityenum, at least one updatable field is required, and the refreshed job is returned. Note that--job-tagsreplaces the job's existing tags rather than appending.What Changed
az quantum job updatecommand, wired up with the workspace validator and job table transformer.--job-priorityand--job-tagsparameters