Skip to content

Commit

Permalink
fix: cancel task not free qos res (#425)
Browse files Browse the repository at this point in the history
* fix: cancel task not free qos res

* refactor
  • Loading branch information
huerni authored Jan 23, 2025
1 parent 548fdd9 commit 07217a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,6 +1464,7 @@ void TaskScheduler::CleanCancelQueueCb_() {
for (auto& task : pending_task_ptr_vec) {
task->SetStatus(crane::grpc::Cancelled);
task->SetEndTime(absl::Now());
g_account_meta_container->FreeQosResource(task->Username(), *task);

if (task->type == crane::grpc::Interactive) {
auto& meta = std::get<InteractiveMetaInTask>(task->meta);
Expand Down

0 comments on commit 07217a2

Please sign in to comment.