Skip to content

Conversation

@TheBits
Copy link
Contributor

@TheBits TheBits commented Feb 22, 2024

  • Fix instance status
  • Reorder columns like dstack ps
  • Stop vastai/k8s instance immediately
  • Skip vastai/k8s offers in dstack pool

@TheBits TheBits self-assigned this Feb 22, 2024
@TheBits TheBits linked an issue Feb 22, 2024 that may be closed by this pull request
@TheBits TheBits force-pushed the issue_921-fix-instance-statuses-when-using-the-vastai branch from fb58d5a to 88ee621 Compare February 22, 2024 07:45
backend_data: Optional[str] = Field(default=None) # backend-specific data in json


class InstanceRuntime(Enum):
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be great if we could someday replace dockerized with this enum


job_provisioning_data = None
if job_model.job_provisioning_data is not None:
job_provisioning_data = parse_raw_as(
Copy link
Contributor

Choose a reason for hiding this comment

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

Note, that for plain types it's simpler to use BaseModel.parse_raw

@TheBits TheBits merged commit 2062f3e into master Feb 22, 2024
@TheBits TheBits deleted the issue_921-fix-instance-statuses-when-using-the-vastai branch March 5, 2024 15:20
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.

Fix instance statuses when using the vast.ai

3 participants