Skip to content

[Bug]: Runner uses 100% cpu #622

@r4victor

Description

@r4victor

dstack version

master

Python version

3.11

Host OS

macOS 13.4

Host Arch

ARM

What happened?

Run a dev env and wait for all logs to be printed. The runner will use 100% CPU. This is because the runner enters an infinite loop without sleep when all logs are streamed. (https://github.com/dstackai/dstack/blob/master/runner/internal/stream/http.go#L107)

Relevant log output

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions