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

Method _nestedCommandCheck

src/checks/checker_process.cpp:673–698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

671
672
673void CheckerProcess::_nestedCommandCheck(
674 shared_ptr<Promise<int>> promise,
675 check::Command cmd,
676 runtime::Nested nested)
677{
678 // TODO(alexr): Use lambda named captures for
679 // these cached values once they are available.
680 const TaskID _taskId = taskId;
681 const string _name = name;
682
683 http::connect(nested.agentURL)
684 .onFailed(defer(self(), [_taskId, _name, promise](const string& failure) {
685 LOG(WARNING) << "Unable to establish connection with the agent to launch "
686 << _name << " for task '" << _taskId << "'"
687 << ": " << failure;
688
689 // We treat this as a transient failure.
690 promise->discard();
691 }))
692 .onReady(defer(self(),
693 &Self::__nestedCommandCheck,
694 promise,
695 lambda::_1,
696 cmd,
697 nested));
698}
699
700
701void CheckerProcess::__nestedCommandCheck(

Callers

nothing calls this directly

Calls 3

deferFunction · 0.85
connectFunction · 0.50
discardMethod · 0.45

Tested by

no test coverage detected