Skip to content

Ekat/Quantum: Add new update job operation - #10161

Draft
v-elegacheva wants to merge 2 commits into
Azure:mainfrom
v-elegacheva:ekat/quantum-job-update
Draft

Ekat/Quantum: Add new update job operation#10161
v-elegacheva wants to merge 2 commits into
Azure:mainfrom
v-elegacheva:ekat/quantum-job-update

Conversation

@v-elegacheva

@v-elegacheva v-elegacheva commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a new az quantum job update command 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-priority is validated against the Priority enum, at least one updatable field is required, and the refreshed job is returned. Note that --job-tags replaces the job's existing tags rather than appending.

What Changed

  • Added the az quantum job update command, wired up with the workspace validator and job table transformer.
  • Implemented the update operation using the data-plane jobs client's merge-patch API, which builds the patch from only the provided fields, validated priority, requires at least one updatable field, and returns the refreshed job.
  • Added the --job-priority and --job-tags parameters
  • Added command help with examples for renaming, changing priority, and replacing tags.
  • Bumped the extension version and updated the changelog.
  • Added unit and live scenario test coverage for the new command and its parameters.

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.
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 30, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution @v-elegacheva! We will review the pull request and get back to you soon.

@a0x1ab

a0x1ab commented Jul 30, 2026

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@v-elegacheva
v-elegacheva marked this pull request as ready for review July 30, 2026 18:09
Copilot AI review requested due to automatic review settings July 30, 2026 18:09
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 update command wiring, parameters, and help content.
  • Implemented the job_update operation 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.

@v-elegacheva
v-elegacheva marked this pull request as draft July 30, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-codegen-extensibility-squad Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization. Quantum az quantum

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants