Changeset 31666
- Timestamp:
- Jun 22, 2011, 12:38:55 AM (15 years ago)
- Location:
- trunk/Ohana/src/opihi/pantasks
- Files:
-
- 8 edited
-
CheckTasks.c (modified) (1 diff)
-
JobOps.c (modified) (2 diffs)
-
TaskOps.c (modified) (1 diff)
-
client_shell.c (modified) (2 diffs)
-
notes.txt (modified) (1 diff)
-
status_server.c (modified) (1 diff)
-
task.c (modified) (2 diffs)
-
task_macros.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/CheckTasks.c
r23555 r31666 61 61 JobTaskLock(); 62 62 if (!status) { 63 task[0].Nskipexec ++; 63 64 continue; 64 65 } -
trunk/Ohana/src/opihi/pantasks/JobOps.c
r27435 r31666 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 -
trunk/Ohana/src/opihi/pantasks/TaskOps.c
r26946 r31666 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"); -
trunk/Ohana/src/opihi/pantasks/client_shell.c
r8548 r31666 22 22 if (Nbad == 10) exit (3); 23 23 24 line = readline (prompt);24 line = opihi_readline (prompt); 25 25 26 26 if (line == NULL) { … … 37 37 } 38 38 Nbad = 0; 39 ohana_memregister (line);40 39 41 40 stripwhite (line); -
trunk/Ohana/src/opihi/pantasks/notes.txt
r23530 r31666 1 2 2011.06.01 3 4 addressing some details: 5 6 tasks->Njobs: 7 ++ : CheckTasks.c:86 after successful submission 8 9 tasks->Nsuccess: 10 ++ : CheckJobs.c:126 : on exit if exit_status == 0 11 12 tasks->Nfailure: 13 ++ : CheckJobs.c:102 : on exit if exit_status == 0 14 ++ : CheckJobs.c:123 : on crash 15 16 tasks->Ntimeout: 1 17 2 18 stdout_cntl: -
trunk/Ohana/src/opihi/pantasks/status_server.c
r27435 r31666 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); -
trunk/Ohana/src/opihi/pantasks/task.c
r23530 r31666 34 34 /* get the next line (from correct place) */ 35 35 if (ThisList == 0) 36 input = readline (prompt);36 input = opihi_readline (prompt); 37 37 else 38 38 input = get_next_listentry (ThisList); … … 46 46 input = strcreate ("end"); 47 47 } 48 if (ThisList == 0) ohana_memregister (input);49 48 50 49 stripwhite (input); -
trunk/Ohana/src/opihi/pantasks/task_macros.c
r23530 r31666 112 112 /* get the next line (from correct place) */ 113 113 if (ThisList == 0) 114 input = readline (prompt);114 input = opihi_readline (prompt); 115 115 else 116 116 input = get_next_listentry (ThisList); … … 124 124 input = strcreate ("end"); 125 125 } 126 if (ThisList == 0) ohana_memregister (input);127 126 128 127 stripwhite (input);
Note:
See TracChangeset
for help on using the changeset viewer.
