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

Use defaults when creating spot instances - fixes block_duration_minutes #512

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

clintoncwolfe
Copy link
Contributor

Description

This switches back to creating one-time requests and terminate on
interrupt, which is the default behavior. That is needed so that
the block_duration_minutes feature will work with the API. The
non-default settings were being used in an attempt to use the
valid_until setting, but we are already honoring the spot_wait
setting by using it in the retry.

Issues Resolved

Fixes #511

Check List

  • All tests pass. See TESTING.md for details.
  • New functionality includes testing.
  • New functionality has been documented in the README if applicable.

This switches back to creating one-time requests and terminate on
interrupt, which is the default behavior. THat is needed so that
the block_duration_minutes feature will work with the API. The
non-default setting swere being used in an attempt to use the
valid_until setting, but we are already honoring the spot_wait
setting by using it in the retry.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
@RenatoMorenoR
Copy link

I have the same problem reported and this version fixes it, please merge if possible

Thanks

@mhincapie
Copy link

thank you so much @clintoncwolfe. We are having the same exact issue as the spot instances are being terminated. Looking forward to this merge.

@RenatoMorenoR
Copy link

Hi @tyler-ball, would it be possible for you to review and if possible approve the code? We have a problem creating the instances and reserving the time to use them. Thank you very much.

@tyler-ball tyler-ball merged commit 083d390 into master Oct 14, 2020
@tyler-ball tyler-ball deleted the cw/block_duration branch October 14, 2020 18:19
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.

block_duration_minutes option no longer working in the version > 3.7.0
4 participants