Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeJobTimeoutError should inherit JobTimeoutError #1073

Closed
jyu00 opened this issue Sep 12, 2023 · 0 comments · Fixed by #1090
Closed

RuntimeJobTimeoutError should inherit JobTimeoutError #1073

jyu00 opened this issue Sep 12, 2023 · 0 comments · Fixed by #1090
Assignees
Labels
bug Something isn't working priority: high High priority issue (must have for current release)
Milestone

Comments

@jyu00
Copy link
Collaborator

jyu00 commented Sep 12, 2023

Describe the bug

job.result() raises a RuntimeJobTimeoutError if the job doesn't finish within the timeout value. Qiskit (terra) defines a JobTimeoutError specifically for this scenario, with the intent that a user can just catch this error regardless which provider is used.

Steps to reproduce

Expected behavior

RuntimeJobTimeoutError should inherit Qiskit's JobTimeoutError. One should also investigate if other exceptions in qiskit.providers.exceptions are properly inherited by corresponding exceptions in qiskit-ibm-runtime.

Suggested solutions

Additional Information

  • qiskit-ibm-runtime version:
  • Python version:
  • Operating system:
@jyu00 jyu00 added the bug Something isn't working label Sep 12, 2023
@kt474 kt474 added this to the 0.12.2 milestone Sep 13, 2023
@jyu00 jyu00 added the priority: high High priority issue (must have for current release) label Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority: high High priority issue (must have for current release)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants