@Override public void alive() { LOG.trace("Program {} is alive.", programRunId); programStateWriter.running(programRunId, twillRunId); }
@Override public void alive() { LOG.trace("Program {} is alive.", programRunId); programStateWriter.running(programRunId, twillRunId); }
public void running(@Nullable String twillRunId) { programStateWriter.running(programRunId, twillRunId); scheduleHeartBeatThread(); }
public void running(@Nullable String twillRunId) { programStateWriter.running(programRunId, twillRunId); scheduleHeartBeatThread(); }
private void publishProgramStatus(ProgramRunId programRunId, ProgramStatus status) { ProgramStateWriter stateWriter = new MessagingProgramStateWriter(cConf, messagingService); switch (status) { case INITIALIZING: stateWriter.start(programRunId, new SimpleProgramOptions(programRunId.getParent()), null, null); break; case RUNNING: stateWriter.running(programRunId, null); break; case COMPLETED: stateWriter.completed(programRunId); break; case FAILED: stateWriter.error(programRunId, new Exception("Program run failed")); break; case KILLED: stateWriter.killed(programRunId); break; default: throw new IllegalArgumentException("Unsupported program status " + status); } }
systemArgs, new BasicArguments(), false); programStateWriter.start(anotherWorkflowRun, programOptions, null, programDescriptor); programStateWriter.running(anotherWorkflowRun, null); long lastProcessed = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()); programStateWriter.error(anotherWorkflowRun, null); systemArgs, new BasicArguments()), null, programDescriptor); programStateWriter.running(someWorkflowRun, null); lastProcessed = TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis()); programStateWriter.killed(someWorkflowRun);