Skip to content

Commit

Permalink
add enum type
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Dec 3, 2024
1 parent c68214c commit b72a2a9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/CraneCtld/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2776,11 +2776,8 @@ CraneErr TaskScheduler::AcquireTaskAttributes(TaskInCtld* task) {
}

CraneErr TaskScheduler::CheckTaskValidity(TaskInCtld* task) {
if (!CheckIfTimeLimitIsValid(task->time_limit)) {
CRANE_TRACE("Time-limit {} reached the user's limit",
absl::FormatDuration(task->time_limit));
if (!CheckIfTimeLimitIsValid(task->time_limit))
return CraneErr::kInvalidTimeLimit;
}

// Check whether the selected partition is able to run this task.
std::unordered_set<std::string> avail_nodes;
Expand Down

0 comments on commit b72a2a9

Please sign in to comment.