src/meta/processors/job/MetaJobExecutor.cpp
// The skeleton to run the job.
// You should rewrite the executeInternal to trigger the calling.
The skeleton to run the job.
You should rewrite the executeInternal to trigger the calling.
The skeleton to run the job . You should rewrite the executeInternal to trigger the calling .
nebula::cpp2::ErrorCode MetaJobExecutor::execute() {
  folly::SemiFuture<Status> future = executeInternal();
  auto rc = nebula::cpp2::ErrorCode::SUCCEEDED;
  future.wait();
  if (!future.value().ok()) {
    LOG(ERROR) << future.value().toString();
    rc = nebula::cpp2::ErrorCode::E_ADD_JOB_FAILURE;
  }
  return rc;
}
nebula :: cpp2 :: ErrorCode MetaJobExecutor :: execute ( ) { folly :: SemiFuture < Status > future = executeInternal ( ) ; auto rc = nebula :: cpp2 :: ErrorCode :: SUCCEEDED ; future . wait ( ) ; if ( ! future . value ( ) . ok ( ) ) { LOG ( ERROR ) << future . value ( ) . toString ( ) ; rc = nebula :: cpp2 :: ErrorCode :: E_ADD_JOB_FAILURE ; } return rc ; }
The skeleton to run the job.
The skeleton to run the job .