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

Method everSentTask

src/slave/slave.cpp:11303–11326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11301
11302
11303bool Executor::everSentTask() const
11304{
11305 if (!launchedTasks.empty()) {
11306 return true;
11307 }
11308
11309 foreachvalue (Task* task, terminatedTasks) {
11310 foreach (const TaskStatus& status, task->statuses()) {
11311 if (status.source() == TaskStatus::SOURCE_EXECUTOR) {
11312 return true;
11313 }
11314 }
11315 }
11316
11317 foreach (const shared_ptr<Task>& task, completedTasks) {
11318 foreach (const TaskStatus& status, task->statuses()) {
11319 if (status.source() == TaskStatus::SOURCE_EXECUTOR) {
11320 return true;
11321 }
11322 }
11323 }
11324
11325 return false;
11326}
11327
11328
11329bool Executor::isGeneratedForCommandTask() const

Callers 5

___runMethod · 0.80
killMethod · 0.80
subscribeMethod · 0.80
registerExecutorMethod · 0.80
reregisterExecutorMethod · 0.80

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected