Skip to content

Commit

Permalink
refactor: Move TaskInstance:GetTaskEnvMap to Supervisor, remove code …
Browse files Browse the repository at this point in the history
…in Craned

Signed-off-by: Li Junlin <xiafeng.li@foxmail.com>
  • Loading branch information
L-Xiafeng committed Dec 24, 2024
1 parent 96ddb45 commit ba3cc54
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 223 deletions.
4 changes: 2 additions & 2 deletions src/Craned/Craned/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ add_executable(craned
CtldClient.cpp
CgroupManager.h
CgroupManager.cpp
JobManager.h
JobManager.cpp
TaskManager.h
TaskManager.cpp
CranedServer.h
CranedServer.cpp
CranedPublicDefs.h
Expand Down
4 changes: 2 additions & 2 deletions src/Craned/Craned/Craned.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "CranedServer.h"
#include "CtldClient.h"
#include "DeviceManager.h"
#include "JobManager.h"
#include "TaskManager.h"
#include "crane/PluginClient.h"
#include "crane/String.h"

Expand Down Expand Up @@ -617,7 +617,7 @@ void GlobalVariableInit() {
g_thread_pool =
std::make_unique<BS::thread_pool>(std::thread::hardware_concurrency());

g_job_mgr = std::make_unique<Craned::JobManager>();
g_job_mgr = std::make_unique<Craned::TaskManager>();

g_ctld_client = std::make_unique<Craned::CtldClient>();
g_ctld_client->SetCranedId(g_config.CranedIdOfThisNode);
Expand Down
2 changes: 1 addition & 1 deletion src/Craned/Craned/CranedServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <yaml-cpp/yaml.h>

#include "JobManager.h"
#include "TaskManager.h"

namespace Craned {

Expand Down
Loading

0 comments on commit ba3cc54

Please sign in to comment.