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

fix: checking all notebooks for unavailable devices. #142

Merged
merged 1 commit into from
May 9, 2022
Merged

Conversation

krneta
Copy link
Contributor

@krneta krneta commented Apr 29, 2022

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@krneta krneta requested a review from a team as a code owner April 29, 2022 19:06
return device.arn, False

content = file.read()
for device in unavailable_devices:
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to add a buffer for the availability of checking for availability for + x mins in the future?

Copy link
Contributor

@virajvchaudhari virajvchaudhari May 6, 2022

Choose a reason for hiding this comment

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

I agree, buffer would be required in future if the notebooks is being executed and device becomes unavailable next minute. But that would be a race condition kind of thing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that it would get a lot more complicated, because we just look at availability times, we don't actually forecast when it's available.

It would be quite a change to try and forecast how long the notebook would take to run and figure out if the device will be available - and it wouldn't quite work if devices are taken offline for other reasons.

@mdpratt mdpratt merged commit bb4e90e into main May 9, 2022
@mdpratt mdpratt deleted the test_fix branch May 9, 2022 17:48
JuanGiraldo0212 pushed a commit to JuanGiraldo0212/amazon-braket-examples that referenced this pull request May 10, 2022
JuanGiraldo0212 pushed a commit to JuanGiraldo0212/amazon-braket-examples that referenced this pull request May 10, 2022
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 this pull request may close these issues.

4 participants