Esempio n. 1
0
 @Override
 public void prepareToStart() {
   try {
     submitter.prepareToStart(this);
   } catch (KaramelException ex) {
     machine
         .getGroup()
         .getCluster()
         .issueFailure(new Failure(Failure.Type.TASK_FAILED, uuid, ex.getMessage()));
     logger.error("", ex);
     dagCallback.failed(ex.getMessage());
   }
 }
Esempio n. 2
0
 @Override
 public void submit(DagTaskCallback callback) {
   this.dagCallback = callback;
   try {
     submitter.submitTask(this);
   } catch (KaramelException ex) {
     machine
         .getGroup()
         .getCluster()
         .issueFailure(new Failure(Failure.Type.TASK_FAILED, uuid, ex.getMessage()));
     logger.error("", ex);
     dagCallback.failed(ex.getMessage());
   }
 }