Skip to content

Commit

Permalink
Fixed small problem with tasks that are too large to schedule never f…
Browse files Browse the repository at this point in the history
…inishing. (#264)
  • Loading branch information
DanteNiewenhuis authored Nov 6, 2024
1 parent 15730a8 commit 4e8ca5d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,13 @@ private void doSchedule() {
// Remove the incoming image
taskQueue.poll();
tasksPending--;
tasksTerminated++;

LOGGER.warn("Failed to spawn {}: does not fit", task);

task.setState(TaskState.FAILED);
task.setState(TaskState.TERMINATED);

this.setTaskToBeRemoved(task);
continue;
} else {
break;
Expand Down

0 comments on commit 4e8ca5d

Please sign in to comment.