Skip to content

Handle exceptions from get_offers() #901

@r4victor

Description

@r4victor

Currently, dstack server does not handle exceptions raised by backends in get_offers():

tasks = [run_async(backend.compute().get_offers, requirements) for backend in backends]

This means that if one of the backends is not available, the server returns 500. This should be fixed by not including the offers of a broken backend and logging the exception to the server log. Later, we may consider passing the error info to the CLI.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions