From c3c7cf4420ec452f0f17c3a982b6f1c3ed3916a5 Mon Sep 17 00:00:00 2001 From: wtr Date: Wed, 18 Dec 2024 16:58:31 +0800 Subject: [PATCH] rm header rm debug message --- src/Craned/TaskManager.cpp | 7 ++----- src/Craned/TaskManager.h | 5 ----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Craned/TaskManager.cpp b/src/Craned/TaskManager.cpp index c9ca75eee..b575f4c3c 100644 --- a/src/Craned/TaskManager.cpp +++ b/src/Craned/TaskManager.cpp @@ -25,7 +25,6 @@ #include #include "CforedClient.h" -#include "CgroupManager.h" #include "CtldClient.h" #include "crane/String.h" #include "protos/CraneSubprocess.pb.h" @@ -248,14 +247,12 @@ void TaskManager::TaskStopAndDoStatusChangeAsync(uint32_t task_id) { task_id, crane::grpc::TaskStatus::ExceedTimeLimit, sigchld_info.value + ExitCode::kTerminationSignalBase, std::nullopt); - else if (instance->termination_event == - TerminatedBy::TERMINATION_BY_OOM) { - CRANE_INFO("oom event"); + else if (instance->termination_event == TerminatedBy::TERMINATION_BY_OOM) ActivateTaskStatusChangeAsync_( task_id, crane::grpc::TaskStatus::Failed, sigchld_info.value + ExitCode::kTerminationSignalBase, std::nullopt); - } else + else ActivateTaskStatusChangeAsync_( task_id, crane::grpc::TaskStatus::Failed, sigchld_info.value + ExitCode::kTerminationSignalBase, diff --git a/src/Craned/TaskManager.h b/src/Craned/TaskManager.h index c0118769a..07c4e63a4 100644 --- a/src/Craned/TaskManager.h +++ b/src/Craned/TaskManager.h @@ -24,11 +24,6 @@ #include #include #include -#include -#include - -#include -#include #include "CgroupManager.h" #include "crane/PasswordEntry.h"