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

[Bug]: The UI issues many API requests when stopping multiple runs #2194

Open
r4victor opened this issue Jan 16, 2025 · 0 comments
Open

[Bug]: The UI issues many API requests when stopping multiple runs #2194

r4victor opened this issue Jan 16, 2025 · 0 comments
Labels
bug Something isn't working ui

Comments

@r4victor
Copy link
Collaborator

r4victor commented Jan 16, 2025

Steps to reproduce

  1. Submit multiple runs (e.g. 20 runs).
  2. Open http://localhost:8000/runs, choose all runs and stop them.
  3. Check that browser sends a separate request to /api/project/{project_name}/runs/stop for each run.

This creates unnecessary load on the server (and may lead to "database is locked" with SQLite). The UI should make a single request to such endpoints. The stop endpoint supports passing multiple runs. The same applies for other endpoints (e.g. delete volumes).

Actual behaviour

No response

Expected behaviour

No response

dstack version

master

Server logs

No response

Additional information

No response

@r4victor r4victor added bug Something isn't working ui labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ui
Projects
None yet
Development

No branches or pull requests

1 participant