- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/simtest_nebulous_branches/Ohana/src/opihi/pcontrol/CheckSystem.c
r21379 r27840 122 122 if (!Njobchecks && !Nhostchecks && (RunLevel != PCONTROL_RUN_NONE)) { 123 123 CheckLiveHosts(0.040); 124 // fprintf (stderr, "sleep a bit\n"); 124 125 usleep (100000); // idle if no jobs are waiting 125 126 } else { 126 127 // if we only have busy jobs, pause a moment before trying again 127 128 if (!Ndonejobs) { 129 // fprintf (stderr, "sleep a bit\n"); 128 130 usleep (100000); 129 131 } … … 357 359 return (TRUE); 358 360 } 359 dtime = DTIME (host[0].next try, start);361 dtime = DTIME (host[0].next_start_try, start); 360 362 if (dtime > 0) { 361 363 PutHost (host, PCONTROL_HOST_DOWN, STACK_BOTTOM); … … 383 385 float dtime; 384 386 385 /* check if there are any pending jobs , otherwise skip step*/387 /* check if there are any pending jobs */ 386 388 stack = GetJobStack (PCONTROL_JOB_PENDING); 387 if (!stack[0].Nobject) return (0); 389 390 /* if there are no pending jobs and we are not in STAGE_NEEDHOST, skip test */ 391 if (!stack[0].Nobject && (Stage != PCONTROL_JOB_STAGE_NEEDHOST)) return (0); 392 393 /* if there are no pending jobs, check for hosts that need to be reset */ 394 if (!stack[0].Nobject) { 395 /* cycle through IDLE hosts */ 396 stack = GetHostStack (PCONTROL_HOST_IDLE); 397 Nobject = stack[0].Nobject; 398 for (i = 0; i < Nobject; i++) { 399 host = PullStackByLocation (stack, STACK_TOP); 400 if (host == NULL) break; 401 if (CheckResetHost (host)) { 402 return (1); 403 } 404 PutHost (host, PCONTROL_HOST_IDLE, STACK_BOTTOM); 405 } 406 return (0); 407 } 388 408 389 409 /* Loop through objects on the stack, no more than once. see note above */
Note:
See TracChangeset
for help on using the changeset viewer.
