Changeset 65033 in vbox
- Timestamp:
- Dec 29, 2016 11:10:03 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 112528
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
r65031 r65033 1301 1301 and oSchedGroup.idSchedGroup not in dIgnoreSchedGroupIds: 1302 1302 return (oSchedGroup, 0); 1303 iWorkItem = 0; 1303 1304 1304 1305 elif len(oTestBoxDataEx.aoInSchedGroups) > 0: … … 1340 1341 if aoFlat[iWorkItem].idSchedGroup not in dIgnoreSchedGroupIds: 1341 1342 return (aoFlat[iWorkItem], iWorkItem); 1343 else: 1344 iWorkItem = 0; 1342 1345 1343 1346 # No active group. 1344 return (None, 0);1347 return (None, iWorkItem); 1345 1348 1346 1349 @staticmethod … … 1381 1384 1382 1385 # We may have to skip scheduling groups that are out of work (e.g. 'No build'). 1386 iInitialWorkItem = iWorkItem; 1383 1387 dIgnoreSchedGroupIds = []; 1384 1388 while True: … … 1396 1400 oDb.commit(); 1397 1401 return dResponse; 1402 1403 # Check out the next work item? 1404 if oScheduler.getElapsedSecs() > config.g_kcSecMaxNewTask: 1405 break; 1398 1406 dIgnoreSchedGroupIds[oSchedGroup.idSchedGroup] = oSchedGroup; 1407 1408 # No luck, but best if we update the work item if we've made progress. 1409 # Note! In case of a config.g_kcSecMaxNewTask timeout, this may accidentally skip 1410 # a work item with actually work to do. But that's a small price to pay. 1411 if iWorkItem != iInitialWorkItem: 1412 oTBStatusLogic.updateWorkItem(oTestBoxDataEx.idTestBox, iWorkItem); 1413 oDb.commit(); 1414 return None; 1399 1415 except: 1400 1416 oDb.rollback();
Note:
See TracChangeset
for help on using the changeset viewer.