MCPcopy Create free account
hub / github.com/bytedance/bolt / getTaskIds

Function getTaskIds

bolt/exec/TraceUtil.cpp:137–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137std::vector<std::string> getTaskIds(
138 const std::string& traceDir,
139 const std::string& queryId,
140 const std::shared_ptr<filesystems::FileSystem>& fs) {
141 const auto queryTraceDir = getQueryTraceDirectory(traceDir, queryId);
142 BOLT_USER_CHECK(
143 fs->exists(queryTraceDir), "{} dose not exist", queryTraceDir);
144 const auto taskDirs = fs->list(queryTraceDir);
145 std::vector<std::string> taskIds;
146 for (const auto& taskDir : taskDirs) {
147 taskIds.emplace_back(findLastPathNode(taskDir));
148 }
149 return taskIds;
150}
151
152folly::dynamic getTaskMetadata(
153 const std::string& taskMetaFilePath,

Callers 3

TEST_FFunction · 0.85
TEST_FFunction · 0.85
printSummaryFunction · 0.85

Calls 4

getQueryTraceDirectoryFunction · 0.85
findLastPathNodeFunction · 0.85
existsMethod · 0.45
listMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68