Skip to content

Commit

Permalink
rm header
Browse files Browse the repository at this point in the history
rm debug message
  • Loading branch information
wtr0504 committed Dec 18, 2024
1 parent 74b5fe0 commit c3c7cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/Craned/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include <sys/wait.h>

#include "CforedClient.h"
#include "CgroupManager.h"
#include "CtldClient.h"
#include "crane/String.h"
#include "protos/CraneSubprocess.pb.h"
Expand Down Expand Up @@ -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,
Expand Down
5 changes: 0 additions & 5 deletions src/Craned/TaskManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@
#include <grp.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <sys/inotify.h>
#include <unistd.h>

#include <atomic>
#include <memory>

#include "CgroupManager.h"
#include "crane/PasswordEntry.h"
Expand Down

0 comments on commit c3c7cf4

Please sign in to comment.