IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42712 for trunk/ippTasks


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

Location:
trunk/ippTasks
Files:
2 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
  • trunk/ippTasks/minidvodb.pro

    r41215 r42712  
    77
    88
    9 #There is a book for each task, because I don't use labels.
     9#There is a book for each task, because I dont use labels.
    1010
    1111if (not($?haveminidvodbBooks))
     
    129129end
    130130
    131 ## you get no choice - you add all of them in at the same time. you can always turn off the tasks you don't want to run.
     131## you get no choice - you add all of them in at the same time. you can always turn off the tasks you dont want to run.
    132132macro add.minidvodb
    133133  if ($0 != 8)
     
    146146  book setword MINIDVODB_PREMERGE $1 DVODB $3
    147147  book setword MINIDVODB_PREMERGE $1 CAMERA $6
     148  book setword MINIDVODB_PREMERGE $1 MINIDVODB_HOST $7
    148149  book setword MINIDVODB_PREMERGE $1 STATE PENDING
    149150  #active 
     
    153154  book setword MINIDVODB_ACTIVE $1 STATE PENDING
    154155
    155   #create  note that camera should be GPC1 for it to work. I couldn't figure out how to easily get this out.
     156  #create  note that camera should be GPC1 for it to work. I couldnt figure out how to easily get this out.
    156157  book newpage MINIDVODB_CREATE $1
    157158  book setword MINIDVODB_CREATE $1 MINIDVODB_GROUP $1
     
    187188  echo "minidvodb create"
    188189  book listbook MINIDVODB_CREATE
    189   echo "minidvodb_active"
     190  echo "minidvodb active"
    190191  book listbook MINIDVODB_ACTIVE
    191192end
    192193
    193194
    194 #$LOADEXEC_MDB = 30
    195 $LOADEXEC_MDB = 2
    196 $LOADPOLL = 2
     195$LOADEXEC_MDB = 60
    197196$timeout_mdb  = 2
    198 $LOADPOLL = 2
    199 $RUNEXEC = 2
     197$LOADPOLL = 5
     198$RUNEXEC = 30
    200199
    201200
     
    430429  #we only want one running at a time
    431430
    432   host         local
    433   npending     1
     431  npending     100
    434432
    435433  task.exec
     
    448446    book getword minidvodbPreMergelist $pageName minidvodb_group -var MINIDVODB_GROUP
    449447    book getword minidvodbPreMergelist $pageName minidvodb_path -var MINIDVODB_PATH
     448    book getword minidvodbPreMergelist $pageName minidvodb_host -var MINIDVODB_HOST
    450449    book getword minidvodbPreMergelist $pageName camera -var CAMERA
    451450    book getword minidvodbPreMergelist $pageName state -var STATE
     
    455454    #still buggy
    456455
    457     $run = minidvodb_premerge.pl --camera GPC1 --minidvodb $MINIDVODB_PATH --minidvodb_group $MINIDVODB_GROUP --minidvodb_id $MINIDVODB_ID
     456    host -required $MINIDVODB_HOST
     457
     458    $run = minidvodb_premerge.pl --camera GPC1 --minidvodb $MINIDVODB_PATH --minidvodb_group $MINIDVODB_GROUP --minidvodb_id $MINIDVODB_ID --minidvodb_host $MINIDVODB_HOST
    458459   
    459460  if ($DB:n == 0)
Note: See TracChangeset for help on using the changeset viewer.