IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 3:24:51 PM (16 years ago)
Author:
bills
Message:

increase the limit on the query of unfinished magicRuns from 100 to 1000
This reduces the likelyhood of nodes with dependents not getting run if the
first N runs have only faulted nodes left to process. The query is cheap
(only magic_id is selected) so this shouldn't cause any performance problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/magictool.c

    r26185 r26848  
    874874
    875875    // look for tree nodes that need to be processed
     876
     877    // first find incomplete magicRuns
    876878    query = pxDataGet("magictool_toprocess_runs.sql");
    877879    if (!query) {
     
    880882    }
    881883
     884    // we limit the query even though it is cheap (only magic_id is selected)
     885
     886    // XXX: if the first 1000 unfinished magicRuns have no ready nodes
     887    // that haven't faulted, later runs won't get returned even though
     888    // they have work to do. When we used a limit of 100 we actually ran
     889    // into this problem. Since we're using labels a limit of 1000 will
     890    // probably be ok.
    882891    {
    883         psString limitString = psDBGenerateLimitSQL( 100 );
     892        psString limitString = psDBGenerateLimitSQL( 1000 );
    884893        psStringAppend(&query, " %s", limitString);
    885894        psFree(limitString);
Note: See TracChangeset for help on using the changeset viewer.