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

Method forward

src/launcher/executor.cpp:1183–1201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1181 }
1182
1183 void forward(const TaskStatus& status)
1184 {
1185 Call call;
1186 call.set_type(Call::UPDATE);
1187
1188 call.mutable_framework_id()->CopyFrom(frameworkId);
1189 call.mutable_executor_id()->CopyFrom(executorId);
1190
1191 call.mutable_update()->mutable_status()->CopyFrom(status);
1192
1193 // Capture the status update.
1194 unacknowledgedUpdates[id::UUID::fromBytes(status.uuid()).get()] =
1195 call.update();
1196
1197 // Overwrite the last task status.
1198 lastTaskStatus = status;
1199
1200 mesos->send(evolve(call));
1201 }
1202
1203 void selfTerminate()
1204 {

Callers

nothing calls this directly

Calls 5

CopyFromMethod · 0.80
sendMethod · 0.65
evolveFunction · 0.50
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected