MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / start

Method start

src/python/uv_runner.cpp:17–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 }
16
17 bool UvRunner::start(const std::vector<std::string>& args) {
18 cancel();
19
20 const auto uv = PackageManager::instance().uv_path();
21 if (uv.empty()) {
22 LOG_ERROR("UV not found");
23 return false;
24 }
25
26 output_buffer_.clear();
27 exit_code_ = -1;
28 complete_ = false;
29
30 if (!process_.start(lfs::core::path_to_utf8(uv), args)) {
31 LOG_ERROR("Failed to start UV process");
32 return false;
33 }
34
35 running_ = true;
36 LOG_INFO("UV started with {} args", args.size());
37 return true;
38 }
39
40 bool UvRunner::poll() {
41 if (!running_.load()) {

Callers 7

install_asyncMethod · 0.45
uninstall_asyncMethod · 0.45
install_torch_asyncMethod · 0.45
install_async_rawMethod · 0.45
runHeadlessWithTCPFunction · 0.45
runGuiFunction · 0.45

Calls 6

instanceFunction · 0.85
path_to_utf8Function · 0.85
uv_pathMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected