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

Closed
r4victor opened this issue Jan 16, 2025 · 0 comments · Fixed by #2273
Closed

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

r4victor opened this issue Jan 16, 2025 · 0 comments · Fixed by #2273
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

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

Successfully merging a pull request may close this issue.

1 participant