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 ray timeout #1425

Merged
merged 4 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Raise an error if cluster is not ready
Tansito committed Jul 29, 2024
commit c829d04846f1a55a402a2ddd0c5dfcb101435640
4 changes: 3 additions & 1 deletion gateway/api/ray.py
Original file line number Diff line number Diff line change
@@ -201,7 +201,7 @@ def submit_job(job: Job) -> Job:
return job


def create_ray_cluster(
def create_ray_cluster( # pylint: disable=too-many-branches
job: Job,
cluster_name: Optional[str] = None,
cluster_data: Optional[str] = None,
@@ -289,6 +289,8 @@ def create_ray_cluster(
resource.title = cluster_name
resource.host = host
resource.save()
else:
raise RuntimeError("Something went wrong during cluster creation")
return resource