-
Notifications
You must be signed in to change notification settings - Fork 159
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
Jobs not being created in a session with 0.20.0 #1428
Comments
Looking at the IQP API logs in staging for that job it's created without a session:
|
The docs here show creating a session only using the context manager method: https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/qiskit_ibm_runtime.Session Is that the only way now? |
@kt474 pointed out in Slack that this no longer works because fake_backend1 is treated like a simulator which doesn't work with sessions now: I tried using test_eagle as the backend and I got a different error for that:
|
@kt474 Given that, the code is working as designed, but it was a surprise. Changing the behavior where jobs submitted to a session but against a simulator backend don't actually create the session isn't documented as far as I can tell. It seems the 0.20.0 release note should be amended (if possible). It also seems like there should be a mention somewhere in the docs related to sessions that simulator backends are not supported. The client won't error, it just won't submit jobs against a session since it's not supported in the API. It's doubly confusing because docs like this which are meant to tell users how to submit jobs against a session are using a simulator backend which won't actually create the session. cc @jyu00 |
There is actually documentation that says sessions don't work with simulators. But you are right that there is still a breaking change here - that sessions "created" for a simulator backend would no longer return a session ID, and that should have gone into the release note. Especially since it's a server side breaking change with no deprecation period.
I believe the intent was to show the |
I'll work with the docs team to update the release note |
Addresses Qiskit/qiskit-ibm-runtime#1428 (comment). I also updated the dev docs to the latest CI build, but only one image changed.
Closing this issue, release note has been updated - https://docs.quantum.ibm.com/api/qiskit-ibm-runtime/release-notes Thank you @Eric-Arellano! |
Addresses Qiskit/qiskit-ibm-runtime#1428 (comment). I also updated the dev docs to the latest CI build, but only one image changed.
Describe the bug
I have this code which used to work - it's a negative test to make sure the API returns an error when trying to submit a job whose max_execution_time is greater than the session's max_time:
That's now failing with 0.20.0 but was working with 0.19.1:
When I looked at IQP job
cqb51w7ft0w0008hqewg
(in staging) it doesn't have a session associated with it.Something must have regressed with #1372 where
POST /sessions
isn't being called in this case?Steps to reproduce
see above
Expected behavior
The job should not get created because the API should reject it since the job's max_execution_time is greater than the session's max_time.
Suggested solutions
n/a
Additional Information
The text was updated successfully, but these errors were encountered: