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]: /api/project/<project>/runs/stop ignores nonexistent runs_names #2318

Open
jvstme opened this issue Feb 18, 2025 · 0 comments
Open

[Bug]: /api/project/<project>/runs/stop ignores nonexistent runs_names #2318

jvstme opened this issue Feb 18, 2025 · 0 comments
Labels
bug Something isn't working minor

Comments

@jvstme
Copy link
Collaborator

jvstme commented Feb 18, 2025

Steps to reproduce

> curl -v http://localhost:3000/api/project/main/runs/stop \
                       -H "Content-Type: application/json" \
                       -H "Authorization: Bearer *****" \
                       -d '{"runs_names": ["aoaoooaoa"], "abort": false}'

Actual behaviour

< HTTP/1.1 200 OK
< date: Tue, 18 Feb 2025 13:54:28 GMT
< server: uvicorn
< content-length: 4
< content-type: application/json
< 
* Connection #0 to host localhost left intact
null

Expected behaviour

Error, run aoaoooaoa not found.

dstack version

0.18.42

Server logs

DEBUG    dstack._internal.server.app:220 Processed request POST http://localhost:3000/api/project/main/runs/stop in 0.130156s. Status: 200

Additional information

Correct error reporting will help find and debug issues like #2315 more easily.

@jvstme jvstme added bug Something isn't working minor labels Feb 18, 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 minor
Projects
None yet
Development

No branches or pull requests

1 participant