Exemplo n.º 1
0
 public void SetRunning()
 {
     lock (_heartBeatManager)
     {
         LOGGER.Log(Level.Verbose, "TaskStatus::SetRunning");
         if (_state == TaskState.Init)
         {
             _taskLifeCycle.Start();
             State = TaskState.Running;
             LOGGER.Log(Level.Verbose, "Sending task Running heartbeat");
             Heartbeat();
         }
     }
 }
Exemplo n.º 2
0
 public void SetRunning()
 {
     LOGGER.Log(Level.Verbose, "TaskStatus::SetRunning");
     if (_state == TaskState.Init)
     {
         try
         {
             _taskLifeCycle.Start();
             // Need to send an INIT heartbeat to the driver prompting it to create an RunningTask event.
             LOGGER.Log(Level.Info, string.Format(CultureInfo.InvariantCulture, "Sending task INIT heartbeat"));
             Heartbeat();
             State = TaskState.Running;
         }
         catch (Exception e)
         {
             Org.Apache.REEF.Utilities.Diagnostics.Exceptions.Caught(e, Level.Error, "Cannot set task status to running.", LOGGER);
             SetException(e);
         }
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Runs the Task Start Handlers
 /// </summary>
 /// <exception cref="TaskStartHandlerException">If any of the Task Start Handlers throws an exception</exception>
 public void RunTaskStartHandlers()
 {
     _taskLifeCycle.Start();
 }