Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
critical27 committed Aug 8, 2022
1 parent 5d553be commit f56a986
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/graph/executor/admin/SubmitJobExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,9 @@ nebula::DataSet SubmitJobExecutor::buildShowResultData(
apache::thrift::util::enumNameSafe(tsk.get_result()),
convertJobTimestampToDateTime(std::move(tsk).get_start_time()),
convertJobTimestampToDateTime(std::move(tsk).get_stop_time()),
apache::thrift::util::enumNameSafe(jd.get_code())}));
jd.get_code() == nebula::cpp2::ErrorCode::E_UNKNOWN
? ""
: apache::thrift::util::enumNameSafe(jd.get_code())}));
}
v.emplace_back(Row({folly::sformat("Total:{}", total),
folly::sformat("Succeeded:{}", succeeded),
Expand Down Expand Up @@ -195,7 +197,9 @@ nebula::DataSet SubmitJobExecutor::buildShowResultData(
apache::thrift::util::enumNameSafe(taskDesc.get_status()),
convertJobTimestampToDateTime(taskDesc.get_start_time()),
convertJobTimestampToDateTime(taskDesc.get_stop_time()),
apache::thrift::util::enumNameSafe(taskDesc.get_code()),
jd.get_code() == nebula::cpp2::ErrorCode::E_UNKNOWN
? ""
: apache::thrift::util::enumNameSafe(jd.get_code()),
}));
}
v.emplace_back(Row({folly::sformat("Total:{}", total),
Expand Down

0 comments on commit f56a986

Please sign in to comment.