Skip to content

Commit

Permalink
run task from start status
Browse files Browse the repository at this point in the history
  • Loading branch information
liwenhui-soul committed Mar 15, 2022
1 parent bb29c3c commit ce713e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/meta/processors/job/BalancePlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ ErrorOr<nebula::cpp2::ErrorCode, std::vector<BalanceTask>> BalancePlan::getBalan
// Resume the failed or invalid task, skip the in-progress tasks
if (task.ret_ == BalanceTaskResult::FAILED || task.ret_ == BalanceTaskResult::INVALID) {
task.ret_ = BalanceTaskResult::IN_PROGRESS;
task.status_ = BalanceTaskStatus::START;
}
auto activeHostRet = ActiveHostsMan::isLived(kv, task.dst_);
if (!nebula::ok(activeHostRet)) {
Expand Down

0 comments on commit ce713e3

Please sign in to comment.