IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40803 for trunk/ippTasks


Ignore:
Timestamp:
Jun 20, 2019, 10:20:26 AM (7 years ago)
Author:
eugene
Message:

allow addstar_multi_run to limit the number of cmf files loaded at one time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r39160 r40803  
    66check.globals
    77
    8 
    98if ($?ADDSTAGES:n == 0)       set ADDSTAGES:n = 0
    10 if ($?MULTIADDSTAGES:n == 0)       set MULTIADDSTAGES:n = 0
    11 
    12 
     9if ($?MULTIADDSTAGES:n == 0)  set MULTIADDSTAGES:n = 0
    1310
    1411book init addPendingExp
    1512book init addPendingMultiExp
    16 
    1713   
    1814macro addstar.status
     
    243239$addstar_multi_stages_DB = 0
    244240
    245     #this may not work for more databases (addstar) will do that later)
     241# this may not work for more databases (addstar) will do that later)
    246242$addstar_revert_DB_C = 0
    247243$addstar_revert_DB_S = 0
     
    253249$addstar_revert_DB_DF = 0
    254250
    255 
    256251#$LOADEXEC_ADD = 300
    257252$LOADEXEC_ADD = 10
    258253
     254if ($?addstar_multiadd_limit == 0) set addstar_multiadd_limit = 0
     255
     256macro set.multiadd.limit
     257  if ($0 != 2)
     258    echo "USAGE: set.multiadd.limit (Nentry)"
     259    break
     260  end
     261
     262  $addstar_multiadd_limit = $1
     263end
     264
     265macro get.multiadd.limit
     266  echo "addstar multi limit : $addstar_multiadd_limit"
     267end
    259268
    260269# select images ready for addstar analysis
     
    545554  periods      -poll $RUNPOLL
    546555  periods      -exec $RUNEXEC
    547   periods      -timeout 1200
     556  periods      -timeout 3600
     557  # addstar MD fields with 250 exp takes about 2400 sec to load
    548558
    549559  ## we want only a single outstanding addstar job. 
     
    641651   # end
    642652
    643 
     653    if ($addstar_multiadd_limit > 0)
     654      $run = $run --limit $addstar_multiadd_limit
     655    end
    644656
    645657    if ("$IMAGE_ONLY" == "T")
    646658      $run = $run --image-only
    647659    end
     660
    648661    if ("$MINIDVODB" == "T")
    649662    $run = $run --minidvodb
Note: See TracChangeset for help on using the changeset viewer.