IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 22, 2019, 4:11:49 PM (7 years ago)
Author:
cclin33
Message:

update addstar for multiple hosts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ccl_branches/ipponly-20191108/ippTasks/survey.pro

    r39548 r41211  
    4040$SURVEY_RELSTACK_DB = 0
    4141$SURVEY_STATICSKYSINGLE_DB = 0
    42 $SURVEY_EXEC = 120
     42$SURVEY_EXEC = 30
    4343$SURVEY_POLL = 10
    44 $SURVEY_TIMEOUT = 600
     44$SURVEY_TIMEOUT = 30
     45# $SURVEY_EXEC = 120
     46# $SURVEY_TIMEOUT = 600
    4547# the tasks for loading the release tabels for nightly science do not need to run very often
    4648$SURVEY_RELEASE_EXEC = 300
     
    947949
    948950task survey.addstar
    949   host local
    950  
    951951  periods      -poll $SURVEY_POLL
    952952  periods      -exec $SURVEY_EXEC
    953953  periods      -timeout $SURVEY_TIMEOUT
     954
     955  host local
    954956  npending     1
    955957
     
    961963    book npages SURVEY_ADDSTAR -var N
    962964    if ($N == 0)
    963 #      echo "No labels for processing"
     965      echo "No labels for processing survey.addstar"
    964966      break
    965967    endif
     
    997999   
    9981000    $run = $run -definebyquery -label $label -set_dvodb $dvodb -set_minidvodb_group $minidvodb_group -set_minidvodb -set_label $minidvodb_group -stage $stage
    999     # echo $run
    10001001    if ("$stage" == "cam")
    1001         #only queue destreaked cams. stacks and staticsky don't need this
    1002     #    if ("$DB:$SURVEY_ADDSTAR_DB" == "isp")
    1003             #this is the only way I can think of how to handle this (but it is messy). If it is a database that we KNOW doesn't use magicked (ie, isp), then do not queue destreaked
     1002        #only queue destreaked cams. stacks and staticsky dont need this
     1003#       if ("$DB:$SURVEY_ADDSTAR_DB" == "isp")
     1004           # this is the only way I can think of how to handle this (but it is messy). If it is a database that we KNOW doesn use magicked (ie, isp), then do not queue destreaked
    10041005           # now with no magic, all are uncensored
    10051006           $run = $run -uncensored
    10061007#       else
    1007            #if not isp, then run destreaked version only
     1008           # if not isp, then run destreaked version only
    10081009#          $run = $run -destreaked
    10091010#       end
     
    10181019    end
    10191020    if ("$stage" == "skycal")
    1020         #skycal doesn't have magic, however, we still need to tell addtool
     1021        #skycal doesnt have magic, however, we still need to tell addtool
    10211022        $run = $run -uncensored
    10221023    end
     
    10281029    end
    10291030    # we need to handle isp/gpc1: gpc1 wants destreaked, isp wants uncensored.  Perhaps the best way is by default do destreaked (the most paranoid), and if db = isp (is this the best way?) then do uncensored
    1030    
    10311031
    10321032    echo $run
Note: See TracChangeset for help on using the changeset viewer.