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

Azure: allow spot instances. #2871

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Azure: allow spot instances. #2871

merged 1 commit into from
Dec 16, 2023

Conversation

concretevitamin
Copy link
Member

Removes the artificial restriction that was added due to our subscription not support spot instances. However, users' subscriptions have access so should be allowed.

Tested:

  • sky launch --cloud azure --use-spot --gpus A100-80GB no longer shows our asserts, but rather proper errors from Azure

Tested (run the relevant ones):

  • Code formatting: bash format.sh
  • Any manual or new tests for this PR (please specify below)
  • All smoke tests: pytest tests/test_smoke.py
  • Relevant individual smoke tests: pytest tests/test_smoke.py::test_fill_in_the_name
  • Backward compatibility tests: bash tests/backward_comaptibility_tests.sh

@@ -68,7 +68,6 @@ def get_hourly_cost(instance_type: str,
region: Optional[str] = None,
zone: Optional[str] = None) -> float:
# Ref: https://azure.microsoft.com/en-us/support/legal/offer-details/
assert not use_spot, 'Current Azure subscription does not support spot.'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you think we should print a warning or a hint that the spot feature on Azure may not be well tested and let the user to file an issue on GitHub?

Copy link
Member Author

Choose a reason for hiding this comment

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

Feels like it should work. Adding may give a sense of being experimental to users. Wdyt?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good. Approving this PR for now. Let's wait and see any feedback from users.

@concretevitamin concretevitamin merged commit 8be5524 into master Dec 16, 2023
19 checks passed
@concretevitamin concretevitamin deleted the fix-az-spot branch December 16, 2023 03:58
remyleone pushed a commit to remyleone/skypilot that referenced this pull request Dec 26, 2023
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.

2 participants