MCPcopy Create free account
hub / github.com/apache/mesos / getTaskGroupForPendingTask

Method getTaskGroupForPendingTask

src/slave/slave.cpp:10797–10809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10795
10796
10797Option<TaskGroupInfo> Framework::getTaskGroupForPendingTask(
10798 const TaskID& taskId)
10799{
10800 foreach (const TaskGroupInfo& taskGroup, pendingTaskGroups) {
10801 foreach (const TaskInfo& taskInfo, taskGroup.tasks()) {
10802 if (taskInfo.task_id() == taskId) {
10803 return taskGroup;
10804 }
10805 }
10806 }
10807
10808 return None();
10809}
10810
10811
10812bool Framework::removePendingTask(const TaskID& taskId)

Callers 1

killPendingTaskMethod · 0.80

Calls 1

NoneClass · 0.85

Tested by

no test coverage detected