Skip to content

Commit

Permalink
Bugfix: empty CRANE_PARTITION environment variable when task using de…
Browse files Browse the repository at this point in the history
…fault partition.

Signed-off-by: Li Junlin <[email protected]>
  • Loading branch information
L-Xiafeng authored and NamelessOIer committed Nov 11, 2024
1 parent b5f5be6 commit ee44950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CraneCtld/CranedKeeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ crane::grpc::ExecuteTasksRequest CranedStub::NewExecuteTasksRequests(
mutable_task->set_name(task->name);
mutable_task->set_account(task->account);
mutable_task->set_qos(task->qos);
mutable_task->set_partition(task->TaskToCtld().partition_name());
mutable_task->set_partition(task->partition_id);

for (auto &&node : task->included_nodes) {
mutable_task->mutable_nodelist()->Add()->assign(node);
Expand Down

0 comments on commit ee44950

Please sign in to comment.