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

Behavior when root job is canceled before session activates #190

Closed
mriedem opened this issue Oct 17, 2023 · 4 comments · Fixed by #340
Closed

Behavior when root job is canceled before session activates #190

mriedem opened this issue Oct 17, 2023 · 4 comments · Fixed by #340
Assignees
Labels
content request request for new content to be added new ✨ on hold ⏸️

Comments

@mriedem
Copy link
Collaborator

mriedem commented Oct 17, 2023

URL, if applicable

These seem applicable (the former links to the latter so maybe only documenting it in one of those places is necessary).

https://qiskit.org/ecosystem/ibm-runtime/sessions.html#what-happens-when-a-session-ends

https://qiskit.org/ecosystem/ibm-runtime/how_to/run_session.html#close-a-session

Describe the new content you are requesting.

For the ibm_cloud pay-go channel, the scheduler is going to be making a behavior change [1] such that if the root/first job in a session is canceled before it runs and activates the session, the session will be closed and any remaining queued jobs in that session will be marked as Failed. This is similar to what happens today if a user explicitly closes their session before all jobs are run or if the session closes due to the max time expiring and there are still remaining queued jobs in the session.

Similarly, there are plans to make the same behavior change in the ibm_quantum (IQP) channel [2].

We hope to have both changes done in October but let's hold off on publishing docs around this until we have the changes in production for both cloud pay-go and IQP channels.

If this new content request is accepted, do you want to write the content?

I only want to review the material when it's finished

@abbycross
Copy link
Collaborator

Thanks @mriedem! Let us know when the changes in production are near.

@abbycross abbycross added this to the dec release milestone Oct 18, 2023
@mriedem
Copy link
Collaborator Author

mriedem commented Nov 9, 2023

The related change has been merged to IQP and should be in production next Monday Nov 13. The behavior is slightly different in the IQP channel in that if the root job is canceled at any point, even if it's running or already completed, the session will be closed and remaining queued jobs will be marked as Failed. That's slightly different from the ibm_cloud channel implementation which only closes the session if the root job is canceled before it ever runs - if the root cloud job is running and then canceled we don't close the cloud pay-go session.

For the purposes of documenting this behavior I doubt you want to get into those details, so maybe it's sufficient to just say that canceling the root job in the session (the job which has the same ID as the session) will close the session and fail any remaining queued jobs in the session.

@abbycross
Copy link
Collaborator

abbycross commented Nov 13, 2023

@beckykd does this need to be tracked on the Cloud docs side in addition to iqp?

@beckykd
Copy link
Collaborator

beckykd commented Nov 13, 2023

@beckykd does this need to be tracked on the Cloud docs side in addition to iqp?

I don't document sessions on the cloud side. I just refer them to OneDocs, so just documenting here is sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content request request for new content to be added new ✨ on hold ⏸️
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants