Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions engine/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,9 @@ void RunServer(std::optional<std::string> host, std::optional<int> port,
drogon::app().registerController(hw_ctl);
drogon::app().registerController(config_ctl);

auto upload_path = std::filesystem::temp_directory_path() / "cortex-uploads";
drogon::app().setUploadPath(upload_path.string());

LOG_INFO << "Server started, listening at: " << config.apiServerHost << ":"
<< config.apiServerPort;
LOG_INFO << "Please load your model";
Expand Down
2 changes: 1 addition & 1 deletion engine/services/model_source_service.cc
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ void ModelSourceService::SyncModelSource() {
constexpr const int kIntervalCheck = 10 * 60;
auto start_time = std::chrono::steady_clock::now();
while (running_) {
std::this_thread::sleep_for(std::chrono::milliseconds(500));
std::this_thread::sleep_for(std::chrono::milliseconds(100));
auto current_time = std::chrono::steady_clock::now();
auto elapsed_time = std::chrono::duration_cast<std::chrono::seconds>(
current_time - start_time)
Expand Down
Loading