IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40150


Ignore:
Timestamp:
Sep 29, 2017, 11:07:14 AM (9 years ago)
Author:
mhuber
Message:

add option to set parse limit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pstamp.pro

    r38586 r40150  
    2020$pstampQCleanup_DB = 0
    2121
     22# limit number of requests in the queue to avoid blocking everything
     23# when jobs take an infinite amount of time to parse
     24$PSTAMP_PARSE_LIMIT = 20
     25macro set.parse.limit
     26    $PSTAMP_PARSE_LIMIT = $1
     27end
     28macro get.parse.limit
     29    echo parse limit : $PSTAMP_PARSE_LIMIT
     30end
     31
    2232# give up on dependents with fault_count >= $PSTAMP_MAX_FAULT_COUNT
    2333$PSTAMP_MAX_FAULT_COUNT = 3
     
    408418        # limit number of requests in the queue to avoid blocking everything
    409419        # when jobs take an infinite amount of time to parse
    410         $run = $run -limit 10
     420        #$run = $run -limit 10
     421        # except parsing is not label/prio based, high prio can get stuck behind low prio, so bump up to 20
     422        # -- should be a config option
     423        $run = $run -limit $PSTAMP_PARSE_LIMIT
    411424        command $run
    412425    end
Note: See TracChangeset for help on using the changeset viewer.