IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31592


Ignore:
Timestamp:
Jun 1, 2011, 11:58:43 AM (15 years ago)
Author:
eugene
Message:

add some server info to pantasks (N skip exec; clearer job status list)

Location:
branches/eam_branches/ipp-20110505/Ohana/src/opihi
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/Ohana/src/opihi/include/pantasks.h

    r27435 r31592  
    108108  int Nfailure;
    109109  int Ntimeout;
     110  int Nskipexec;
    110111
    111112  double dtimeAve_alljobs, dtimeMin_alljobs, dtimeMax_alljobs;
     
    216217int DeleteJob (Job *job);
    217218void FreeJob (Job *job);
     219char *JobStateToString (JobStat state);
    218220
    219221float CheckJobs (void);
  • branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/CheckTasks.c

    r23555 r31592  
    6161      JobTaskLock();
    6262      if (!status) {
     63        task[0].Nskipexec ++;
    6364        continue;
    6465      }
  • branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/JobOps.c

    r27435 r31592  
    8282  gprint (GP_LOG, " Jobs in Pantasks Queue\n");
    8383  for (i = 0; i < Njobs; i++) {
    84     gprint (GP_LOG, " %d: %-15s %5d %20s (%lx)\n", Njobs, jobs[i][0].task[0].name, jobs[i][0].JobID, jobs[i][0].argv[0], (long) jobs[i][0].argv);
     84    gprint (GP_LOG, " %4d  %6d: %-25s %10s %20s\n", Njobs, jobs[i][0].JobID, jobs[i][0].task[0].name, JobStateToString(jobs[i][0].state), jobs[i][0].argv[0]);
    8585  }
    8686
     
    280280  return (job[0].state);
    281281}
     282
     283static char *JobStateNone    = "NONE";
     284static char *JobStateBusy    = "BUSY";
     285static char *JobStateExit    = "EXIT";
     286static char *JobStateHung    = "HUNG";
     287static char *JobStateCrash   = "CRASH";
     288static char *JobStatePending = "PENDING";
     289
     290char *JobStateToString (JobStat state) {
     291
     292  switch (state) {
     293    case JOB_NONE:
     294      return JobStateNone;
     295    case JOB_BUSY:
     296      return JobStateBusy;
     297    case JOB_EXIT:
     298      return JobStateExit;
     299    case JOB_HUNG:
     300      return JobStateHung;
     301    case JOB_CRASH:
     302      return JobStateCrash;
     303    case JOB_PENDING:
     304      return JobStatePending;
     305    default:
     306      return JobStateNone;
     307  }     
     308  return JobStateNone;
     309}
     310
  • branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/TaskOps.c

    r26946 r31592  
    151151        free (stop);
    152152      }
     153      gprint (GP_LOG, "     Nskip exec: %d\n", tasks[i][0].Nskipexec);
    153154      if (tasks[i][0].host == NULL) {
    154155        gprint (GP_LOG, "    task runs locally\n");
  • branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/status_server.c

    r27435 r31592  
    11# include "pantasks.h"
     2// this is the server version of the status_sys function (status.c)
     3// the server verion needs to include locks on the jobs.
    24
    35int status_scheduler(void);
Note: See TracChangeset for help on using the changeset viewer.