2424#include < vector>
2525
2626#include " ../execution_context.hpp"
27+ #include " ../logging.hpp"
2728#include " ../model_metric_reporter.hpp"
2829#include " ../profiler.hpp"
2930#include " ../status.hpp"
@@ -103,7 +104,11 @@ class MediapipeGraphExecutor {
103104 MetricCounterGuard failedRequestsGuard (this ->mediapipeServableMetricReporter ->getRequestsMetric (executionContext, false ));
104105 MetricGaugeGuard currentGraphsGuard (this ->mediapipeServableMetricReporter ->currentGraphs .get ());
105106 ::mediapipe::CalculatorGraph graph;
107+ SPDLOG_ERROR (" SetExecutor XXX" );
108+ std::ignore = graph.SetExecutor (" " , sharedThreadPool); // TODO FIXME
109+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} initializationXXXbegin" , this ->name );
106110 MP_RETURN_ON_FAIL (graph.Initialize (this ->config ), std::string (" failed initialization of MediaPipe graph: " ) + this ->name , StatusCode::MEDIAPIPE_GRAPH_INITIALIZATION_ERROR);
111+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} initializationXXXend" , this ->name );
107112 std::unordered_map<std::string, ::mediapipe::OutputStreamPoller> outputPollers;
108113 for (auto & name : this ->outputNames ) {
109114 if (name.empty ()) {
@@ -124,7 +129,9 @@ class MediapipeGraphExecutor {
124129 inputSidePackets[PYTHON_SESSION_SIDE_PACKET_TAG] = mediapipe::MakePacket<PythonNodeResourcesMap>(this ->pythonNodeResourcesMap ).At (STARTING_TIMESTAMP);
125130 inputSidePackets[LLM_SESSION_SIDE_PACKET_TAG] = mediapipe::MakePacket<LLMNodeResourcesMap>(this ->llmNodeResourcesMap ).At (STARTING_TIMESTAMP);
126131#endif
132+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} startRunXXXbegin" , this ->name );
127133 MP_RETURN_ON_FAIL (graph.StartRun (inputSidePackets), std::string (" start MediaPipe graph: " ) + this ->name , StatusCode::MEDIAPIPE_GRAPH_START_ERROR);
134+ SPDLOG_ERROR (" Start unary KServe request mediapipe graph: {} startRunXXXend" , this ->name );
128135
129136 ::mediapipe::Packet packet;
130137 std::set<std::string> outputPollersWithReceivedPacket;
@@ -216,7 +223,9 @@ class MediapipeGraphExecutor {
216223 {
217224 OVMS_PROFILE_SCOPE (" Mediapipe graph initialization" );
218225 // Init
226+ SPDLOG_DEBUG (" Start unary KServe request mediapipe graph: {} initializationXXX" , this ->name );
219227 MP_RETURN_ON_FAIL (graph.Initialize (this ->config ), " graph initialization" , StatusCode::MEDIAPIPE_GRAPH_INITIALIZATION_ERROR);
228+ SPDLOG_DEBUG (" Start unary KServe request mediapipe graph: {} initializationXXX ended" , this ->name );
220229 }
221230 {
222231 OVMS_PROFILE_SCOPE (" Mediapipe graph installing packet observers" );
0 commit comments