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
1 change: 0 additions & 1 deletion engine/commands/run_cmd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ bool RunCmd::IsModelExisted(const std::string& model_id) {
try {
config::YamlHandler handler;
handler.ModelConfigFromFile(entry.path().string());
std::cout << entry.path().stem().string() << std::endl;
if (entry.path().stem().string() == model_id) {
return true;
}
Expand Down
16 changes: 11 additions & 5 deletions engine/controllers/processManager.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
#include "processManager.h"
#include <cstdlib>
#include "utils/cortex_utils.h"

#include <trantor/utils/Logger.h>
#include <cstdlib>

void processManager::destroy(
const HttpRequestPtr &req,
std::function<void(const HttpResponsePtr &)> &&callback) {
const HttpRequestPtr& req,
std::function<void(const HttpResponsePtr&)>&& callback) {
app().quit();
Json::Value ret;
ret["message"] = "Program is exitting, goodbye!";
auto resp = cortex_utils::CreateCortexHttpJsonResponse(ret);
resp->setStatusCode(k200OK);
callback(resp);
LOG_INFO << "Program is exitting, goodbye!";
exit(0);
return;
};