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

job.get_results fail with expired token #553

Closed
anpaz opened this issue Jan 12, 2024 · 1 comment · Fixed by #593
Closed

job.get_results fail with expired token #553

anpaz opened this issue Jan 12, 2024 · 1 comment · Fixed by #593
Assignees

Comments

@anpaz
Copy link
Member

anpaz commented Jan 12, 2024

When trying to fetch the results of a job obtained through workspace.list_jobs(), the call might fail due to the storage token being expired, for example, when getting the results from the last job:

all_jobs = aqua_workspace.list_jobs()
job = all_jobs[-1]
job.get_results()

The workaround is to explifictly fetch the job again from the service:

all_jobs = aqua_workspace.list_jobs()
job = all_jobs[-1]
job = aqua_workspace.get_job(job.id)

job.get_results()

Ideally, get_results should automatically does this for the user.

@kikomiss
Copy link
Contributor

The fix is implemented and is going to be included in the next release of azure-quantum package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants