Changeset 11898 for trunk/Ohana/src/opihi/pantasks/CheckJobs.c
- Timestamp:
- Feb 19, 2007, 3:18:27 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/CheckJobs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/CheckJobs.c
r11542 r11898 11 11 Queue *queue; 12 12 13 // int Ncheck; 14 // Ncheck = 0; 15 13 16 /** test all jobs: ready to test? finished? **/ 14 17 while ((job = NextJob ()) != NULL) { 18 // Ncheck ++; 15 19 16 20 task = job[0].task; 17 21 18 22 /* check poll period (ready to ask for status?) */ 19 if (GetTaskTimer(job[0].last ) < task[0].poll_period) continue;23 if (GetTaskTimer(job[0].last, FALSE) < task[0].poll_period) continue; 20 24 21 25 /* check current status */ … … 135 139 */ 136 140 if (job[0].mode == JOB_LOCAL) { 137 if (GetTaskTimer(job[0].start ) < task[0].timeout_period) continue;141 if (GetTaskTimer(job[0].start, FALSE) < task[0].timeout_period) continue; 138 142 if (VerboseMode()) gprint (GP_LOG, "timeout on %s\n", task[0].name); 139 143 … … 176 180 /* reset polling clock */ 177 181 SetTaskTimer (&job[0].last); 178 if (TestElapsedCheck()) return (TRUE); 182 if (TestElapsedCheck()) { 183 // fprintf (stderr, "check %d jobs\n", Ncheck); 184 return (TRUE); 185 } 179 186 } 187 // fprintf (stderr, "check %d jobs\n", Ncheck); 180 188 return (TRUE); 181 189 }
Note:
See TracChangeset
for help on using the changeset viewer.
