ApplicationStatus getApplicationStatus(JobConfig jobConfig) {
    // Bypass recreating the job runner for local deployments
    // TODO: SAMZA-2738: Return real status for local jobs after avoiding recreating the Job in runner.status()
    if (isLocalDeployment(jobConfig)) {
      return Running;
    }
    JobRunner runner = new JobRunner(jobConfig);
    ApplicationStatus status = runner.status();
    LOG.debug("Status is {} for job {}", new Object[]{status, jobConfig.getName()});
    return status;
  }
Constructors a {@link RemoteApplicationRunner} to run the {@code app} with the {@code config}.

@param app application to run
@param config configuration for the application
samza-core/src/main/java/org/apache/samza/runtime/RemoteApplicationRunner.java