Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Nov 29, 2024
1 parent 4b81a7e commit 4706d88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CraneCtld/CtldGrpcServer.cpp
Original file line number Diff line number Diff line change
@@ -977,6 +977,11 @@ CtldServer::SubmitTaskToScheduler(std::unique_ptr<TaskInCtld> task) {
g_task_scheduler->SubmitTaskAsync(std::move(task));
return {std::move(future)};
}

if (result.has_error()) {
CRANE_DEBUG("Task submission failed. Reason: {}.", result.error().second);
return result::fail(result.error().second);
}
}

} // namespace Ctld

0 comments on commit 4706d88

Please sign in to comment.