IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 12:49:05 PM (16 years ago)
Author:
eugene
Message:

merging changes from trunk into branches/pap

Location:
branches/pap
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/pap

  • branches/pap/ippTasks/camera.pro

    r27472 r28003  
    154154    book getword camPendingExp $pageName cam_id -var CAM_ID
    155155    book getword camPendingExp $pageName workdir -var WORKDIR_TEMPLATE
     156    book getword camPendingExp $pageName path_base -var PATH_BASE
    156157    book getword camPendingExp $pageName dvodb  -var DVODB
    157158    book getword camPendingExp $pageName dbname -var DBNAME
    … …  
    173174    # neb:///ipp004-vol0/gpc1/20080130
    174175
    175     ## generate outroot specific to this exposure (& chip)
    176     sprintf outroot "%s/%s/%s.cm.%s" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID
     176    if ("$PATH_BASE" == "NULL")
     177        ## generate outroot specific to this exposure (& chip)
     178        sprintf outroot "%s/%s/%s.cm.%s" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID
     179    else
     180        $outroot = $PATH_BASE
     181    end
    177182
    178183    stdout $LOGDIR/camera.exp.log
  • branches/pap/ippTasks/chip.pro

    r27472 r28003  
    153153    book getword chipPendingImfile $pageName reduction -var REDUCTION
    154154    book getword chipPendingImfile $pageName state -var RUN_STATE
     155    book getword chipPendingImfile $pageName path_base -var PATH_BASE
    155156
    156157    if ($RAW_MAGICKED > 0)
    … …  
    174175    # neb:///ipp004-vol0/gpc1/20080130
    175176
    176     ## generate outroot specific to this exposure (& chip)
    177     sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID
     177    if ("$PATH_BASE" == "NULL")
     178        ## generate outroot specific to this exposure (& chip)
     179        sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID
     180    else
     181        $outroot = $PATH_BASE
     182    end
    178183
    179184    stdout $LOGDIR/chip.imfile.log
  • branches/pap/ippTasks/destreak.pro

    r27529 r28003  
    3737    echo magicDSToRevert
    3838    book listbook magicDSToRevert
     39    echo magicDSToCleanup
     40    book listbook magicDSToCleanup
    3941end
    4042
    … …  
    212214    book getword magicToDS $pageName recoveryroot -var RECROOT
    213215    book getword magicToDS $pageName re_place -var REPLACE
     216    book getword magicToDS $pageName magicked -var MAGICKED
    214217    book getword magicToDS $pageName dbname -var DBNAME
    215218
    … …  
    226229    # TODO: do not add recoveryroot or replace if they are null or zero
    227230
    228     $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE
     231    $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE --magicked $MAGICKED
    229232
    230233    add_standard_args run
    … …  
    273276  #periods      -exec $LOADEXEC
    274277  periods      -exec 30
    275   periods      -timeout 20
     278  periods      -timeout 60
    276279  npending     1
    277280
    … …  
    412415    book getword magicDSToRevert $pageName re_place -var REPLACE
    413416    book getword magicDSToRevert $pageName bothways -var BOTHWAYS
     417    book getword magicDSToRevert $pageName magicked -var MAGICKED
    414418    book getword magicDSToRevert $pageName dbname -var DBNAME
    415419
    … …  
    424428    end
    425429
    426     $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS
     430    $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED
    427431
    428432    add_standard_args run
  • branches/pap/ippTasks/diff.pro

    r27472 r28003  
    184184    book getword diffSkyfile $pageName reduction -var REDUCTION
    185185    book getword diffSkyfile $pageName diff_mode -var DIFF_MODE
     186    book getword diffSkyfile $pageName path_base -var PATH_BASE
    186187
    187188    # set the host and workdir based on the skycell hash
    … …  
    207208
    208209    basename $TESS_DIR -var TESS_ID
    209     sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID
     210
     211    if ("$PATH_BASE" == "NULL")
     212        sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID
     213    else
     214        $outroot = $PATH_BASE
     215    end
    210216
    211217    stdout $LOGDIR/diff.skycell.log
  • branches/pap/ippTasks/nightly_stacks.pro

    r27641 r28003  
    164164
    165165  task.exec
     166    stdout $LOGDIR/ns.initday.log
     167    stderr $LOGDIR/ns.initday.log
    166168    $today = `date +%Y-%m-%d`
    167169    book newpage nsData $today
    168170    book setword nsData $today nsState NEW
    169171
    170     command echo $today
    171 #   command automate_stacks.pl --clean_old --date $today
     172#    command echo $today
     173   command automate_stacks.pl --clean_old --date $today
    172174  end
    173175
    … …  
    370372  periods         -poll $LOADPOLL
    371373  periods         -exec $LOADEXEC
    372   periods         -timeout 30
     374  periods         -timeout 120
    373375  npending        1
    374376
    … …  
    424426  periods         -poll $LOADPOLL
    425427  periods         -exec $LOADEXEC
    426   periods         -timeout 30
     428  periods         -timeout 120
    427429  npending        1
    428430
  • branches/pap/ippTasks/pstamp.pro

    r27187 r28003  
    1313$pstampFin_DB = 0
    1414$pstampRev_DB = 0
     15$pstampDep_DB = 0
     16$pstampCleanup_DB = 0
    1517
    1618# set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config
    … …  
    2830    book init pstampJob
    2931    book init pstampFinish
     32    book init pstampDependent
     33    book init pstampCleanup
    3034end
    3135
    3236pstamp.reset
    33 
    3437
    3538macro pstamp.on
    … …  
    5760        active true
    5861    end
    59     task pstamp.job.revert
     62    task pstamp.dependent.load
    6063        active true
    6164    end
    … …  
    8992        active false
    9093    end
     94    task pstamp.dependent.load
     95        active false
     96    end
     97    task pstamp.dependent.run
     98        active false
     99    end
    91100end
    92101
    … …  
    98107macro pstamp.revert.off
    99108    task pstamp.job.revert
     109        active false
     110    end
     111end
     112macro pstamp.cleanup.on
     113    task pstamp.cleanup.load
     114        active true
     115    end
     116    task pstamp.cleanup.run
     117        active true
     118    end
     119end
     120macro pstamp.cleanup.off
     121    task pstamp.cleanup.run
     122        active false
     123    end
     124    task pstamp.cleanup.run
    100125        active false
    101126    end
    … …  
    150175
    151176    task.exec
    152         stdout $LOGSUBDIR/pstamp.request.load.log
     177        stdout NULL
    153178        stderr $LOGSUBDIR/pstamp.request.load.log
    154179        $run = pstamptool -pendingreq
    … …  
    195220
    196221    task.exec
    197         stdout $LOGSUBDIR/pstamp.request.run.log
     222        stdout NULL
    198223        stderr $LOGSUBDIR/pstamp.request.run.log
    199224        book npages pstampRequest -var N
    … …  
    208233        book getword pstampRequest $pageName uri -var URI
    209234        book getword pstampRequest $pageName ds_outProduct -var PRODUCT
     235        book getword pstampRequest $pageName outdir -var OUTDIR
     236        book getword pstampRequest $pageName label -var LABEL
    210237
    211238        host anyhost
    212239
    213         $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --redirect-output
     240        $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --outdir $OUTDIR --label $LABEL --redirect-output
    214241
    215242        add_standard_args run
    … …  
    252279
    253280    task.exec
    254         stdout $LOGSUBDIR/pstamp.finish.load.log
     281        stdout NULL
    255282        stderr $LOGSUBDIR/pstamp.finish.load.log
    256283        $run = pstamptool  -completedreq
    … …  
    297324
    298325    task.exec
    299         stdout $LOGSUBDIR/request.finish.run.log
     326        stdout NULL
    300327        stderr $LOGSUBDIR/request.finish.run.log
    301328        book npages pstampFinish -var N
    … …  
    312339        book getword pstampFinish $pageName name -var REQ_NAME
    313340        book getword pstampFinish $pageName outProduct -var PRODUCT
    314 
    315         $run = request_finish.pl --req_id $REQ_ID --req_type $REQ_TYPE --req_file $URI --req_name $REQ_NAME --product $PRODUCT --redirect-output
     341        book getword pstampFinish $pageName outdir -var OUTDIR
     342
     343        $run = request_finish.pl --req_id $REQ_ID --req_type $REQ_TYPE --req_file $URI --req_name $REQ_NAME --product $PRODUCT --outdir $OUTDIR --redirect-output
    316344
    317345        add_standard_args run
    … …  
    354382
    355383    task.exec
    356         stdout $LOGSUBDIR/pstamp.job.load.log
     384        stdout NULL
    357385        stderr $LOGSUBDIR/pstamp.job.load.log
    358386        $run = pstamptool -pendingjob
    … …  
    402430
    403431    task.exec
    404         stdout $LOGSUBDIR/pstamp.job.run.log
     432        stdout NULL
    405433        stderr $LOGSUBDIR/pstamp.job.run.log
    406434        book npages pstampJob -var N
    … …  
    480508
    481509    task.exec
    482         stdout $LOGSUBDIR/pstamp.job.revert.log
     510        stdout NULL
    483511        stderr $LOGSUBDIR/pstamp.job.revert.log
    484512        $run = pstamptool -revertjob -all
    … …  
    512540end
    513541
     542task pstamp.dependent.load
     543    host        local
     544
     545    periods     -poll $LOADPOLL
     546    # XXX: create a macro for this time
     547    periods     -exec 10
     548#    periods     -exec $LOADEXEC
     549    periods     -timeout 300
     550    npending    1
     551
     552    task.exec
     553        stdout NULL
     554        stderr $LOGSUBDIR/pstamp.dependent.load.log
     555        $run = pstamptool -pendingdependent
     556        if ($DB:n == 0)
     557            option DEFAULT
     558        else
     559            option $DB:$pstampDep_DB
     560            $run = $run -dbname $DB:$pstampDep_DB $PS_DBSERVER
     561            $pstampDep_DB ++
     562            if ($pstampDep_DB >= $DB:n) set pstampDep_DB = 0
     563        end
     564        add_poll_args run
     565        add_poll_labels run
     566        command $run
     567    end
     568
     569    task.exit $EXIT_SUCCESS
     570        ipptool2book stdout pstampDependent -key dep_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     571
     572        book npages pstampDependent -var N
     573        if ($VERBOSE > 2)
     574            book listbook pstampDependent
     575        end
     576
     577        # delete existing entries in the appropriate pantaskStates
     578        process_cleanup pstampDependent
     579    end
     580
     581    task.exit   crash
     582        showcommand crash
     583    end
     584
     585    task.exit   timeout
     586        showcommand timeout
     587    end
     588
     589    task.exit   default
     590        showcommand failure
     591    end
     592
     593end
     594
     595task pstamp.dependent.run
     596    periods     -poll $RUNPOLL
     597    periods     -exec $RUNEXEC
     598    periods     -timeout 300
     599
     600    task.exec
     601        book npages pstampDependent -var N
     602        if ($N == 0)
     603            periods -exec $RUNEXEC
     604            break
     605        end
     606        periods -exec 0.05
     607       
     608        book getpage pstampDependent 0 -var pageName -key pantaskState INIT
     609        if ("$pageName" == "NULL") break
     610
     611        book setword pstampDependent $pageName pantaskState RUN
     612        book getword pstampDependent $pageName dep_id     -var DEP_ID
     613        book getword pstampDependent $pageName state      -var STATE
     614        book getword pstampDependent $pageName stage      -var STAGE
     615        book getword pstampDependent $pageName stage_id   -var STAGE_ID
     616        book getword pstampDependent $pageName component  -var COMPONENT
     617        book getword pstampDependent $pageName imagedb    -var IMAGEDB
     618        book getword pstampDependent $pageName rlabel     -var RLABEL
     619        book getword pstampDependent $pageName outdir     -var OUTDIR
     620        book getword pstampDependent $pageName need_magic -var NEED_MAGIC
     621        book getword pstampDependent $pageName dbname     -var DBNAME
     622
     623        if ($VERBOSE > 1)
     624            book listpage pstampDependent $pageName
     625        end
     626
     627        host anyhost
     628
     629        if ("$NEED_MAGIC" == "T")
     630            $NEED_MAGIC="--need_magic"
     631        else
     632            $NEED_MAGIC=""
     633        end
     634
     635        $MYLOGFILE = $OUTDIR/checkdep.$DEP_ID.log
     636        stdout $MYLOGFILE
     637        stderr $MYLOGFILE
     638
     639        $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC
     640
     641        add_standard_args run
     642
     643        options $pageName
     644
     645        if ($VERBOSE > 1)
     646            echo command $run
     647        end
     648        command $run
     649    end
     650
     651
     652    task.exit $EXIT_SUCCESS
     653        if ($VERBOSE > 1)
     654            echo pstamp.dependent.run task.exit $DEP_ID status: $JOB_STATUS
     655        end
     656        process_exit pstampDependent $options:0 $JOB_STATUS
     657    end
     658    task.exit default
     659        if ($VERBOSE > 1)
     660            echo pstamp.job.run task.exit $DEP_ID status: $JOB_STATUS
     661        end
     662        showcommand failure
     663        process_exit pstampDependent $options:0 $JOB_STATUS
     664    end
     665
     666    task.exit crash
     667        echo pstamp.job.run task.crash $DEP_ID status: $JOB_STATUS
     668        process_exit pstampDependent $options:0 $JOB_STATUS
     669        showcommand crash
     670        book setword pstampDependent $options:0 pantaskState CRASH
     671    end
     672
     673    task.exit timeout
     674        echo pstamp.job.run task.timeout $DEP_ID status: $JOB_STATUS
     675        process_exit pstampDependent $options:0 $JOB_STATUS
     676        showcommand timeout
     677        book setword pstampDependent $options:0 pantaskState TIMEOUT
     678    end
     679end
     680
     681task pstamp.cleanup.load
     682    host        local
     683
     684    periods     -poll $LOADPOLL
     685    periods     -exec $LOADEXEC
     686    periods     -timeout 300
     687    npending    1
     688
     689    task.exec
     690        stdout NULL
     691        stderr $LOGSUBDIR/pstamp.cleanup.load.log
     692        $run = pstamptool -pendingcleanup
     693        if ($DB:n == 0)
     694            option DEFAULT
     695        else
     696            option $DB:$pstampCleanup_DB
     697            $run = $run $PS_DBSERVER -dbname $DB:$pstampCleanup_DB
     698            $pstampCleanup_DB ++
     699            if ($pstampCleanup_DB >= $DB:n) set pstampCleanup_DB = 0
     700        end
     701        add_poll_args run
     702        add_poll_labels run
     703        command $run
     704    end
     705
     706    task.exit $EXIT_SUCCESS
     707        ipptool2book stdout pstampCleanup -key req_id -uniq -setword dbname $options:0 -setword pantaskState INIT
     708        if ($VERBOSE > 2)
     709            echo starting request
     710            book listbook pstampCleanup
     711        end
     712
     713        process_cleanup pstampCleanup
     714    end
     715
     716    task.exit   default
     717        showcommand failure
     718    end
     719
     720    task.exit   crash
     721        showcommand crash
     722    end
     723
     724    task.exit   timeout
     725        showcommand timeout
     726    end
     727end
     728
     729task pstamp.cleanup.run
     730    periods     -poll $RUNPOLL
     731    periods     -exec $RUNEXEC
     732    periods     -timeout 300
     733    # since everything is on one file system keep npending low to avoid
     734    # overloading nfs
     735
     736    npending    10
     737
     738    task.exec
     739        book npages pstampCleanup -var N
     740        if ($N == 0)
     741            periods -exec $RUNEXEC
     742            break
     743        end
     744        periods -exec 0.05
     745       
     746        book getpage pstampCleanup 0 -var pageName -key pantaskState INIT
     747        if ("$pageName" == "NULL") break
     748
     749        book setword pstampCleanup $pageName pantaskState RUN
     750        book getword pstampCleanup $pageName req_id -var REQ_ID
     751        book getword pstampCleanup $pageName dbname -var DBNAME
     752        book getword pstampCleanup $pageName name -var NAME
     753        book getword pstampCleanup $pageName outdir -var OUTDIR
     754        book getword pstampCleanup $pageName uri -var URI
     755        book getword pstampCleanup $pageName reqType -var REQTYPE
     756        book getword pstampCleanup $pageName outProduct -var PRODUCT
     757
     758        # XXX: have the script set this up this
     759        $MYLOGFILE=/data/ippdb02.0/pstamp/work/logs/cleanup.$REQ_ID
     760        stdout $MYLOGFILE
     761        stderr $MYLOGFILE
     762
     763        host anyhost
     764
     765        $run = pstamp_cleanup.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --name $NAME --outdir $OUTDIR --reqType $REQTYPE
     766
     767        add_standard_args run
     768        options $pageName
     769
     770        if ($VERBOSE > 1)
     771            echo command $run
     772        end
     773        command $run
     774    end
     775
     776
     777    task.exit $EXIT_SUCCESS
     778        process_exit pstampCleanup $options:0 $JOB_STATUS
     779    end
     780
     781    task.exit default
     782        showcommand failure
     783        process_exit pstampCleanup $options:0 $JOB_STATUS
     784    end
     785
     786    task.exit crash
     787        showcommand crash
     788        book setword pstampCleanup $options:0 pantaskState CRASH
     789    end
     790
     791    task.exit timeout
     792        showcommand timeout
     793        book setword pstampCleanup $options:0 pantaskState TIMEOUT
     794    end
     795end
     796
  • branches/pap/ippTasks/stack.pro

    r27472 r28003  
    116116    end
    117117    add_poll_args run
    118     # add_poll_labels run
     118    add_poll_labels run
    119119    command $run
    120120  end
    … …  
    172172    book getword stackSumSkyfile $pageName skycell_id -var SKYCELL_ID
    173173    book getword stackSumSkyfile $pageName workdir -var WORKDIR_TEMPLATE
     174    book getword stackSumSkyfile $pageName path_base -var PATH_BASE
    174175    book getword stackSumSkyfile $pageName reduction -var REDUCTION
    175176    book getword stackSumSkyfile $pageName dbname -var DBNAME
    … …  
    185186
    186187    basename $TESS_DIR -var TESS_ID
    187     sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
     188    if ("$PATH_BASE" == "NULL")
     189        sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID
     190    else
     191        $outroot = $PATH_BASE
     192    end
    188193
    189194    stdout $LOGDIR/stack.skycell.log
  • branches/pap/ippTasks/summit.copy.pro

    r26698 r28003  
    107107    periods      -timeout   20
    108108    npending     1
    109     # trange       16:00 23:59
    110     # trange       00:00 04:00
     109
     110    # only active in the day (06:00 to 19:00 HST, times are UT):
     111    trange        -reset
     112    # trange        16:00 23:59
     113    # trange        00:00 05:00
    111114
    112115    task.exec
    … …  
    153156# and inserting these into a db table on the local cluster (pzDownloadExp)
    154157task pzgetexp
     158  host         local
     159
    155160  periods      -exec     30
    156161  periods      -poll     1
    157162  periods      -timeout  700
    158   # trage       16:00 23:59
    159   # trage       00:00 04:00
    160163  npending      1
    161   host         local
     164
     165  # only active in the day (06:00 to 19:00 HST, times are UT):
     166  trange        -reset
     167  # trange        16:00 23:59
     168  # trange        00:00 05:00
    162169
    163170  task.exec
    … …  
    213220    periods      -poll     1
    214221    periods      -timeout  20
    215     # trange       16:00 23:59
    216     # trange       00:00 04:00
    217222    npending     1
     223
     224    # only active in the day (06:00 to 19:00 HST, times are UT):
     225    trange        -reset
     226    # trange        16:00 23:59
     227    # trange        00:00 05:00
    218228
    219229    task.exec
    … …  
    224234        # save the DB name for the exit tasks
    225235        option $DB:$pztoolPendingExp_DB
    226         command pztool -pendingexp -limit 5 -dbname $DB:$pztoolPendingExp_DB
     236        command pztool -pendingexp -limit 10 -dbname $DB:$pztoolPendingExp_DB
    227237        $pztoolPendingExp_DB ++
    228238        if ($pztoolPendingExp_DB >= $DB:n) set pztoolPendingExp_DB = 0
    … …  
    261271# database table of imfiles
    262272task pzgetimfile
     273    host        local
     274
    263275    periods      -exec     0.05
    264276    periods      -poll     0.025
    265277    periods      -timeout  700
    266     # trage       16:00 23:59
    267     # trage       00:00 04:00
    268     host        local
    269278    npending    10
     279
     280    # only active in the day (06:00 to 19:00 HST, times are UT):
     281    trange        -reset
     282    # trange        16:00 23:59
     283    # trange        00:00 05:00
    270284
    271285    task.exec
    … …  
    336350    host         local
    337351
    338     periods      -exec     30
     352    periods      -exec     10
    339353    periods      -poll      1
    340354    periods      -timeout  120
    341     # trage       16:00 23:59
    342     # trage       00:00 04:00
    343355    npending     1
     356
     357    # only active in the day (06:00 to 19:00 HST, times are UT):
     358    trange        -reset
     359    # trange        16:00 23:59
     360    # trange        00:00 05:00
    344361
    345362    # select entries from the current DB; cycle to the next DB, if it exists
    … …  
    352369        # save the DB name for the exit tasks
    353370        option $DB:$pztoolPendingImfile_DB
    354         command pztool -pendingimfile -limit 60 -dbname $DB:$pztoolPendingImfile_DB
     371        command pztool -pendingimfile -limit 240 -dbname $DB:$pztoolPendingImfile_DB
    355372        $pztoolPendingImfile_DB ++
    356373        if ($pztoolPendingImfile_DB >= $DB:n) set pztoolPendingImfile_DB = 0
    … …  
    384401    periods      -poll     0.05
    385402    periods      -timeout  1150
     403
     404    # only active in the day (06:00 to 19:00 HST, times are UT):
    386405    trange        -reset
    387     # only active in the night (18:00 to 06:00 HST, times are UT):
    388     # trange      04:00 16:00
    389     # only active in the day (06:00 to 18:00 HST, times are UT):
    390406    # trange        16:00 23:59
    391     # trange        00:00 04:00
     407    # trange        00:00 05:00
    392408
    393409    task.exec
    … …  
    548564    periods      -poll      1
    549565    periods      -timeout  120
    550     # trage       16:00 23:59
    551     # trage       00:00 04:00
    552566    npending     1
    553567
    … …  
    592606    periods      -poll     0.05
    593607    periods      -timeout  650
    594     # trage       16:00 23:59
    595     # trage       00:00 04:00
    596608
    597609    task.exec
  • branches/pap/ippTasks/warp.pro

    r27620 r28003  
    314314    book getword warpPendingSkyCell $pageName camera -var CAMERA
    315315    book getword warpPendingSkyCell $pageName workdir -var WORKDIR_TEMPLATE
     316    book getword warpPendingSkyCell $pageName path-base -var PATH_BASE
    316317    book getword warpPendingSkyCell $pageName dbname -var DBNAME
    317318    # XXX change tess_id to tess_dir when schema is changed
    … …  
    331332    set.workdir.by.skycell $SKYCELL_ID $WORKDIR_TEMPLATE $default_host WORKDIR
    332333
    333     ## generate outroot specific to this exposure
    334     sprintf outroot "%s/%s/%s.wrp.%s.%s" $WORKDIR $EXP_TAG $EXP_TAG $WARP_ID $SKYCELL_ID
     334    if ("$PATH_BASE" == "NULL")
     335        ## generate outroot specific to this exposure
     336        sprintf outroot "%s/%s/%s.wrp.%s.%s" $WORKDIR $EXP_TAG $EXP_TAG $WARP_ID $SKYCELL_ID
     337    else
     338        $outroot = $PATH_BASE
     339    end
    335340
    336341    stdout $LOGDIR/warp.skycell.log
Note: See TracChangeset for help on using the changeset viewer.