IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2007, 3:18:27 PM (19 years ago)
Author:
eugene
Message:

removed usleep from job and task threads; increased controller timeout; added verbosity; fixed quit controller; added check points to pcontrol thread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pantasks/CheckJobs.c

    r11542 r11898  
    1111  Queue *queue;
    1212
     13  // int Ncheck;
     14  // Ncheck = 0;
     15
    1316  /** test all jobs: ready to test?  finished? **/
    1417  while ((job = NextJob ()) != NULL) {
     18    // Ncheck ++;
    1519
    1620    task = job[0].task;
    1721
    1822    /* 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;
    2024
    2125    /* check current status */
     
    135139     */
    136140    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;
    138142      if (VerboseMode()) gprint (GP_LOG, "timeout on %s\n", task[0].name);
    139143
     
    176180    /* reset polling clock */
    177181    SetTaskTimer (&job[0].last);
    178     if (TestElapsedCheck()) return (TRUE);
     182    if (TestElapsedCheck()) {
     183      // fprintf (stderr, "check %d jobs\n", Ncheck);
     184      return (TRUE);
     185    }
    179186  }
     187  // fprintf (stderr, "check %d jobs\n", Ncheck);
    180188  return (TRUE);
    181189}
Note: See TracChangeset for help on using the changeset viewer.