8000 Refactor backends to wait for instance IP address outside run_job/create_instance by r4victor · Pull Request #1149 · dstackai/dstack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor backends to wait for instance IP address outside run_job/create_instance #1149

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

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

r4victor
Copy link
Collaborator
@r4victor r4victor commented Apr 18, 2024

Closes #1148
Fixes #1145

This PR:

  • allows backends to return IP address and ssh_port from run_job()/create_instance() optionally.
  • allows backends to implement Compute.update_provisioning_data() to ping instance for IP address and ssh_port.
  • refactors job and instance processing logic to wait for IP address and ssh_port outside of run_job()/create_instance().
  • removes LaunchedInstanceInfo in favor of JobProvisioingData.
  • and minor job and instance processing logic improvements.

Tested dstack run for:

  • aws
  • azure
  • cudo
  • datacrunch
  • gcp
  • kubernetes
  • lambda
  • local
  • nebius
  • runpod
  • tensordock
  • vastai

Tested dstack pool add for:

  • aws
  • azure
  • cudo
  • datacrunch
  • gcp
  • lambda
  • local
  • nebius
  • tensordock

Other tests:

  • backend never returning IP address terminates instance/job on timeout.

@r4victor r4victor marked this pull request as ready for review April 18, 2024 10:01
@r4victor r4victor merged commit 3d9e6cd into master Apr 19, 2024
15 checks passed
Bihan pushed a commit to SMTM-Capital/dstack that referenced this pull request Apr 30, 2024
…ate_instance (dstackai#1149)

* Do not require ip address waiting for dstack run

* Refactor job/instance processing to handle no ip in provisioning data

* Minor fixes
Bihan pushed a commit to SMTM-Capital/dstack that referenced this pull request Apr 30, 2024
…ate_instance (dstackai#1149)

* Do not require ip address waiting for dstack run

* Refactor job/instance processing to handle no ip in provisioning data

* Minor fixes
Bihan pushed a commit to SMTM-Capital/dstack that referenced this pull request Apr 30, 2024
…ate_instance (dstackai#1149)

* Do not require ip address waiting for dstack run

* Refactor job/instance processing to handle no ip in provisioning data

* Minor fixes
Bihan pushed a commit to SMTM-Capital/dstack that referenced this pull request Apr 30, 2024
…ate_instance (dstackai#1149)

* Do not require ip address waiting for dstack run

* Refactor job/instance processing to handle no ip in provisioning data

* Minor fixes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant
0