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

Method getExecutorIdForPendingTask

src/slave/slave.cpp:10859–10869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10857
10858
10859Option<ExecutorID> Framework::getExecutorIdForPendingTask(
10860 const TaskID& taskId) const
10861{
10862 foreachkey (const ExecutorID& executorId, pendingTasks) {
10863 if (pendingTasks.at(executorId).contains(taskId)) {
10864 return executorId;
10865 }
10866 }
10867
10868 return None();
10869}
10870
10871
10872Resources Framework::allocatedResources() const

Callers 2

foreachFunction · 0.80
killPendingTaskMethod · 0.80

Calls 1

NoneClass · 0.85

Tested by

no test coverage detected