Examples of JobStatus


Examples of com.spotify.helios.common.descriptors.JobStatus

    final boolean all = options.getBoolean(allArg.getDest());
    final boolean force = options.getBoolean(forceArg.getDest());
    final List<String> hosts;

    if (all) {
      final JobStatus status = client.jobStatus(jobId).get();
      hosts = ImmutableList.copyOf(status.getDeployments().keySet());
      if (hosts.isEmpty()) {
        out.printf("%s is not currently deployed on any hosts.", jobId);
        return 0;
      }
View Full Code Here

Examples of com.sun.grid.jam.job.JobStatus

//                             + " ID: " + job.getID() +
//                             " stops sleeping");

//         System.out.println("-------------");
       
        JobStatus st = null;
        try {
          nativeAdapter.updateJobStat(job);
    //    System.out.println("Job "+job.getID()+":\n" +
    //           job.getStat().toString());
          st = getNextStatus(job.getStat());
        } catch(NativeSGECommException ncce){
        } catch(NativeSGEException ncrmae) {
          st = JobStatus.COMPLETED;
          terminate();
        }
        Transaction txn = null;
        try {
          txn = createTransaction(5 * 1000);
          JobControlEntry jce =
            (JobControlEntry)space.readIfExists(jControl, null,
                                                JavaSpace.NO_WAIT);
          if((st == null) || (jce == null)) {
            continue;
          }
          if(!st.equals(jce.jobStatus)) {
            jce = (JobControlEntry)
              space.takeIfExists(jControl, txn, JavaSpace.NO_WAIT);
            if(jce == null) {
              if(txn != null)
                txn.abort();
View Full Code Here

Examples of com.sun.grid.jam.job.JobStatus

    run = false;
  }

  private JobStatus getNextStatus(JobStat js)
  {
    JobStatus st = JobStatus.UNKNOWN;
   
    switch(js.getStatus()) {

    case JobStat.JIDLE:
      if(js.containsState(JobStat._JHELD) &&
View Full Code Here

Examples of com.sun.grid.jam.job.JobStatus

 
  public void updateInfo()
  {
    JobControlEntry jce = jobService.getJobControlEntry();
    if(jce != null) {
      JobStatus st = jce.jobStatus;
      JobAction ac = jce.jobAction;
      displayJobControlEntry(st, ac);
      setMonitorState(st, ac);
    }
    displayJobParams(jobService.getJobParams());
View Full Code Here

Examples of com.taobao.zeus.model.JobStatus

          ScheduleInfoLog.error(
              String.format("JobId:%s run failed", jobId), e);
        }
        boolean success = resp.getStatus() == Status.OK ? true : false;

        JobStatus jobstatus = context.getGroupManager().getJobStatus(
            jobId);
        jobstatus
            .setStatus(com.taobao.zeus.model.JobStatus.Status.WAIT);
        if (success
            && (his.getTriggerType() == TriggerType.SCHEDULE || his
                .getTriggerType() == TriggerType.MANUAL_RECOVER)) {
          ScheduleInfoLog.info("JobId:" + jobId
              + " clear ready dependency");
          jobstatus.setReadyDependency(new HashMap<String, String>());
        }
        context.getGroupManager().updateJobStatus(jobstatus);

        if (!success) {
          // 运行失败,更新失败状态,发出失败消息
View Full Code Here

Examples of eu.stratosphere.nephele.jobgraph.JobStatus

        this.lastProcessedEventSequenceNumber = event.getSequenceNumber();

        // Check if we can exit the loop
        if (event instanceof JobEvent) {
          final JobEvent jobEvent = (JobEvent) event;
          final JobStatus jobStatus = jobEvent.getCurrentJobStatus();
          if (jobStatus == JobStatus.SCHEDULED) {
            startTimestamp = jobEvent.getTimestamp();
          }
          if (jobStatus == JobStatus.FINISHED) {
            Runtime.getRuntime().removeShutdownHook(this.jobCleanUp);
View Full Code Here

Examples of org.apache.airavata.gsi.ssh.impl.JobStatus

//
                Thread t = new Thread() {
                    @Override
                    public void run() {
                        try {
                            JobStatus jobStatus = finalCluster.getJobStatus(jobID);
                            listener.statusChanged(jobStatus);
                            while (true) {
                                while (!jobStatus.equals(JobStatus.C)) {
                                    if (!jobStatus.equals(listener.getJobStatus().toString())) {
                                        listener.setJobStatus(jobStatus);
                                        listener.statusChanged(jobStatus);
                                    }
                                    Thread.sleep(60000);
View Full Code Here

Examples of org.apache.airavata.model.workspace.experiment.JobStatus

            }
        } else {
            registry = jobExecutionContext.getRegistry();
        }
        details = new JobDetails();
        status = new JobStatus();
        this.jobExecutionContext = jobExecutionContext;
    }
View Full Code Here

Examples of org.apache.airavata.model.workspace.experiment.JobStatus

            }
        }else{
            registry = jobExecutionContext.getRegistry();
        }
    details = new JobDetails();
    status = new JobStatus();
    this.jobExecutionContext=jobExecutionContext;
  }
View Full Code Here

Examples of org.apache.flink.runtime.jobgraph.JobStatus

    }
  }
 
  public void cancel() {
    while (true) {
      JobStatus current = state;
     
      if (current == JobStatus.RUNNING || current == JobStatus.CREATED) {
        if (transitionState(current, JobStatus.CANCELLING)) {
          for (ExecutionJobVertex ejv : verticesInCreationOrder) {
            ejv.cancel();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.