Changeset 31592
- Timestamp:
- Jun 1, 2011, 11:58:43 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110505/Ohana/src/opihi
- Files:
-
- 5 edited
-
include/pantasks.h (modified) (2 diffs)
-
pantasks/CheckTasks.c (modified) (1 diff)
-
pantasks/JobOps.c (modified) (2 diffs)
-
pantasks/TaskOps.c (modified) (1 diff)
-
pantasks/status_server.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110505/Ohana/src/opihi/include/pantasks.h
r27435 r31592 108 108 int Nfailure; 109 109 int Ntimeout; 110 int Nskipexec; 110 111 111 112 double dtimeAve_alljobs, dtimeMin_alljobs, dtimeMax_alljobs; … … 216 217 int DeleteJob (Job *job); 217 218 void FreeJob (Job *job); 219 char *JobStateToString (JobStat state); 218 220 219 221 float CheckJobs (void); -
branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/CheckTasks.c
r23555 r31592 61 61 JobTaskLock(); 62 62 if (!status) { 63 task[0].Nskipexec ++; 63 64 continue; 64 65 } -
branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/JobOps.c
r27435 r31592 82 82 gprint (GP_LOG, " Jobs in Pantasks Queue\n"); 83 83 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]); 85 85 } 86 86 … … 280 280 return (job[0].state); 281 281 } 282 283 static char *JobStateNone = "NONE"; 284 static char *JobStateBusy = "BUSY"; 285 static char *JobStateExit = "EXIT"; 286 static char *JobStateHung = "HUNG"; 287 static char *JobStateCrash = "CRASH"; 288 static char *JobStatePending = "PENDING"; 289 290 char *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 151 151 free (stop); 152 152 } 153 gprint (GP_LOG, " Nskip exec: %d\n", tasks[i][0].Nskipexec); 153 154 if (tasks[i][0].host == NULL) { 154 155 gprint (GP_LOG, " task runs locally\n"); -
branches/eam_branches/ipp-20110505/Ohana/src/opihi/pantasks/status_server.c
r27435 r31592 1 1 # 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. 2 4 3 5 int status_scheduler(void);
Note:
See TracChangeset
for help on using the changeset viewer.
