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

Function taskOrTaskGroup

src/slave/slave.cpp:11580–11598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11578
11579
11580static string taskOrTaskGroup(
11581 const Option<TaskInfo>& task,
11582 const Option<TaskGroupInfo>& taskGroup)
11583{
11584 ostringstream out;
11585 if (task.isSome()) {
11586 out << "task '" << task->task_id() << "'";
11587 } else {
11588 CHECK_SOME(taskGroup);
11589
11590 vector<TaskID> taskIds;
11591 foreach (const TaskInfo& task, taskGroup->tasks()) {
11592 taskIds.push_back(task.task_id());
11593 }
11594 out << "task group containing tasks " << taskIds;
11595 }
11596
11597 return out.str();
11598}
11599
11600
11601static CommandInfo defaultExecutorCommandInfo(

Callers 4

runMethod · 0.85
foreachFunction · 0.85
_runMethod · 0.85
__runMethod · 0.85

Calls 1

isSomeMethod · 0.45

Tested by

no test coverage detected