IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2024, 2:55:58 PM (2 years ago)
Author:
cclin33
Message:

fix mis-match mosaic issue when running addstar, optimize addstar program

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/addstar.pro

    r41213 r42712  
    228228
    229229macro stuff
    230    echo $LOADEXEC_ADD
    231    echo $LOADPOLL
     230   echo LOADEXEC_ADD: $LOADEXEC_ADD
     231   echo LOADPOLL_ADD: $LOADPOLL_ADD
     232   echo RUNEXEC_ADD:  $RUNEXEC_ADD
     233   echo RUNPOLL_ADD:  $RUNPOLL_ADD
    232234end
    233235
     
    249251$addstar_revert_DB_DF = 0
    250252
    251 #$LOADEXEC_ADD = 300
     253# loading time every N seconds
    252254$LOADEXEC_ADD = 10
     255$LOADPOLL_ADD = 10
     256$RUNEXEC_ADD = 5
     257$RUNPOLL_ADD = 10
    253258
    254259if ($?addstar_multiadd_limit == 0) set addstar_multiadd_limit = 0
     
    273278  host         local
    274279
    275   periods      -poll $LOADPOLL
     280  periods      -poll $LOADPOLL_ADD
    276281  periods      -exec $LOADEXEC_ADD
    277282  periods      -timeout 300
    278283  npending     1
    279284
     285  date -var rundate
     286
    280287  stdout NULL
    281288  stderr $LOGDIR/addstar.exp.log
    282289
    283290  task.exec
    284     #if no stages defined we can't run
     291    #if no stages defined we cant run
    285292    if ($ADDSTAGES:n == 0) echo "what"
    286  #   if ($ADDSTAGES:n == 0) break
    287     $run = addtool -pendingexp
     293    if ($ADDSTAGES:n == 0) break
     294    $run = addtool -pendingexp -addrand
     295
     296    book npages addPendingExp  -var addPendingExp_Npage
     297    if ($addPendingExp_Npage > 10000)
     298      $POLL_LIMIT = 1
     299      echo $addPendingExp_Npage $rundate
     300    end
    288301   
    289302    #option $ADDSTAGES:$addstar_stages_DB
     
    301314    add_poll_args run
    302315    add_poll_labels run
    303     echo $run
     316    echo $run $rundate
    304317    command $run
    305318  end
     
    348361
    349362  task.exec
    350     #if no stages defined we can't run
     363    #if no stages defined we cant run
    351364    if ($MULTIADDSTAGES:n == 0) echo "no stages for addstar.multi, use add.addstagesmulti"
    352365 #   if ($MULTIADDSTAGES:n == 0) break
     
    400413# run the addstar script on pending exposures
    401414task           addstar.exp.run
    402   periods      -poll $RUNPOLL
    403   periods      -exec $RUNEXEC
     415  periods      -poll $RUNPOLL_ADD
     416  periods      -exec $RUNEXEC_ADD
    404417  periods      -timeout 1200
    405418
    406419  ## we want only a single outstanding addstar job. 
    407420#  host         local
    408   npending     100
     421  npending     1000
    409422
    410423  task.exec
     424    # if we are unable to run the 'exec', use a long retry time
     425    periods -exec $RUNEXEC_ADD
     426
    411427    book npages addPendingExp -var N
    412428    if ($N == 0) break
     
    433449    book getword addPendingExp $pageName image_only -var IMAGE_ONLY
    434450    book getword addPendingExp $pageName dbname -var DBNAME
    435     book getword addPendingExp $pageName dvodbhost  -var DVODBHOST
    436 
    437     host -required $DVODBHOST
     451    book getword addPendingExp $pageName addrun_host  -var ADDRUN_HOST
     452
     453    host -required $ADDRUN_HOST
    438454
    439455    # specify choice of remote host based on camera and chip (class_id)
     
    480496    stderr $LOGDIR/addstar.exp.log
    481497
    482     $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output --dvodbhost $DVODBHOST
     498    $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output --addrun_host $ADDRUN_HOST
    483499    if ("$REDUCTION" != "NULL")
    484500      $run = $run --reduction $REDUCTION
     
    501517    end
    502518    if ("$STAGE" == "fullforce_summary")
    503     # This shouldn't need a stage_extra1, as there are no subcomponents to the ff summary.
     519    # This shouldnt need a stage_extra1, as there are no subcomponents to the ff summary.
    504520      $run = $run --stage_id $STAGE_ID
    505521    end
    506 
    507522
    508523
     
    528543      echo command $run
    529544    end
     545    periods -exec 0.1
    530546    command $run
    531547  end
Note: See TracChangeset for help on using the changeset viewer.