Skip to content

Conversation

@diego-plan9
Copy link
Member

@diego-plan9 diego-plan9 commented Jan 7, 2026

Summary

Reintroduce the delete_job endpoint, reverting part of the changes in #2439.

Details and comments

Fixes #2523

@diego-plan9 diego-plan9 changed the title [WIP] Reintroduce delete_job Reintroduce delete_job Jan 7, 2026
@diego-plan9 diego-plan9 marked this pull request as ready for review January 7, 2026 18:09
Copy link
Collaborator

@SamFerracin SamFerracin left a comment

Choose a reason for hiding this comment

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

LGTM

@diego-plan9 diego-plan9 added this pull request to the merge queue Jan 8, 2026
Merged via the queue into Qiskit:main with commit 34ee774 Jan 8, 2026
17 checks passed
@run_integration_test
def test_delete_job(self, service):
"""Test deleting a job."""
self.skipTest("Deleting jobs not supported on IBM Quantum Platform.")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is misleading, and probably why the method was removed in the first place.

The delete job API requires a more elevated role in IAM, one that the CI running this probably doesn't have. I'd re-word this at least (and below).

A better pattern would be trying to run the test and if delete job fails with a 401 or 403 error, then skip the test because whoever is running it doesn't have the correct RBAC privileges.

Copy link
Contributor

Choose a reason for hiding this comment

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

I opened issue #2548 for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, good catch! Will follow-up in the issue

@diego-plan9 diego-plan9 deleted the feature/reintroduce-delete-job branch January 8, 2026 15:00
@diego-plan9 diego-plan9 added the Changelog: New Feature Include in the Added section of the changelog label Jan 8, 2026
diego-plan9 added a commit to diego-plan9/qiskit-ibm-runtime that referenced this pull request Jan 9, 2026
* Reintroduce delete_job

* Add release note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: New Feature Include in the Added section of the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore delete_job method

3 participants