Changeset 11317 for trunk/Ohana/src/opihi/pantasks/CheckTasks.c
- Timestamp:
- Jan 26, 2007, 10:10:40 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pantasks/CheckTasks.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pantasks/CheckTasks.c
r11055 r11317 16 16 17 17 /* need to check if the current time is within valid/invalid periods */ 18 if (!CheckTimeRanges (task[0].ranges, task[0].Nranges)) continue; 19 if (task[0].Nmax && (task[0].Njobs >= task[0].Nmax)) continue; 20 if (task[0].NpendingMax && (task[0].Npending >= task[0].NpendingMax)) continue; 18 if (!CheckTimeRanges (task[0].ranges, task[0].Nranges)) { 19 gettimeofday (&task[0].last, (void *) NULL); 20 continue; 21 } 22 if (task[0].Nmax && (task[0].Njobs >= task[0].Nmax)) { 23 gettimeofday (&task[0].last, (void *) NULL); 24 continue; 25 } 26 if (task[0].NpendingMax && (task[0].Npending >= task[0].NpendingMax)) { 27 gettimeofday (&task[0].last, (void *) NULL); 28 continue; 29 } 30 31 /* check if there are errors with this task */ 32 if (!ValidateTask (task, TRUE)) { 33 gettimeofday (&task[0].last, (void *) NULL); 34 continue; 35 } 21 36 22 37 /* ready to run? : run task.exec macro */ 23 38 if (task[0].exec != NULL) { 24 39 status = exec_loop (task[0].exec); 25 if (!status) continue; 40 if (!status) { 41 gettimeofday (&task[0].last, (void *) NULL); 42 continue; 43 } 26 44 } 27 if (!ValidateTask (task, TRUE)) continue;28 45 29 46 /* construct job from task */
Note:
See TracChangeset
for help on using the changeset viewer.
