IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/ipp-20100621/ippTasks
Files:
15 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/ippTasks

  • branches/eam_branches/ipp-20100621/ippTasks/Makefile.am

    r28344 r28794  
    3434        minidvodb.pro \
    3535        nightly_stacks.pro \
     36        burntool.pro \
    3637        lossy_compress.pro \
     38        background.pro \
    3739        diffphot.pro
    3840
  • branches/eam_branches/ipp-20100621/ippTasks/detrend.norm.pro

    r23480 r28794  
    6464end
    6565
     66macro detnorm.revert.off
     67  task detrend.norm.revert
     68    active false
     69  end
     70  task detrend.normexp.revert
     71    active false
     72  end
     73  task detrend.normstat.revert
     74    active false
     75  end
     76end
     77
     78macro detnorm.revert.on
     79  task detrend.norm.revert
     80    active true
     81  end
     82  task detrend.normexp.revert
     83    active true
     84  end
     85  task detrend.normstat.revert
     86    active true
     87  end
     88end
     89
     90
    6691# these variables will cycle through the known database names
    6792$detPendingNormStatImfile_DB = 0
    6893$detPendingNormImfile_DB = 0
    6994$detPendingNormExp_DB = 0
     95$detPendingNormStatImfile_DB_revert = 0
     96$detPendingNormImfile_DB_revert = 0
     97$detPendingNormExp_DB_revert = 0
    7098
    7199# select images ready for copy
     
    440468  end
    441469end
     470
     471task detrend.norm.revert
     472  host         local
     473
     474  periods      -poll 60.0
     475  periods      -exec 1800.0
     476  periods      -timeout 120.0
     477  npending     1
     478
     479  stdout NULL
     480  stderr $LOGDIR/revert.log
     481
     482  task.exec
     483
     484    $run = dettool -revertnormalizedimfile -all-run
     485    if ($DB:n == 0)
     486      option DEFAULT
     487    else
     488      # save the DB name for the exit tasks
     489      option $DB:$detPendingNormImfile_DB_revert
     490      $run = $run -dbname $DB:$detPendingNormImfile_DB_revert
     491      $detPendingNormImfile_DB_revert ++
     492      if ($detPendingNormImfile_DB_revert >= $DB:n) set detPendingNormImfile_DB_revert = 0
     493    end
     494    echo $run
     495    command $run
     496  end
     497
     498  # success
     499  task.exit    0
     500  end
     501
     502  # locked list
     503  task.exit    default
     504    showcommand failure
     505  end
     506
     507  task.exit    crash
     508    showcommand crash
     509  end
     510
     511  # operation times out?
     512  task.exit    timeout
     513    showcommand timeout
     514  end
     515end
     516
     517task detrend.normexp.revert
     518  host         local
     519
     520  periods      -poll 60.0
     521  periods      -exec 1800.0
     522  periods      -timeout 120.0
     523  npending     1
     524
     525  stdout NULL
     526  stderr $LOGDIR/revert.log
     527
     528  task.exec
     529
     530    $run = dettool -revertnormalizedexp -all-run
     531    if ($DB:n == 0)
     532      option DEFAULT
     533    else
     534      # save the DB name for the exit tasks
     535      option $DB:$detPendingNormExp_DB_revert
     536      $run = $run -dbname $DB:$detPendingNormExp_DB_revert
     537      $detPendingNormExp_DB_revert ++
     538      if ($detPendingNormExp_DB_revert >= $DB:n) set detPendingNormExp_DB_revert = 0
     539    end
     540    echo $run
     541    command $run
     542  end
     543
     544  # success
     545  task.exit    0
     546  end
     547
     548  # locked list
     549  task.exit    default
     550    showcommand failure
     551  end
     552
     553  task.exit    crash
     554    showcommand crash
     555  end
     556
     557  # operation times out?
     558  task.exit    timeout
     559    showcommand timeout
     560  end
     561end
     562
     563task detrend.normstat.revert
     564  host         local
     565
     566  periods      -poll 60.0
     567  periods      -exec 1800.0
     568  periods      -timeout 120.0
     569  npending     1
     570
     571  stdout NULL
     572  stderr $LOGDIR/revert.log
     573
     574  task.exec
     575 
     576    $run = dettool -revertnormalizedstat -all-run
     577    if ($DB:n == 0)
     578      option DEFAULT
     579    else
     580      # save the DB name for the exit tasks
     581      option $DB:$detPendingNormStatImfile_DB_revert
     582      $run = $run -dbname $DB:$detPendingNormStatImfile_DB_revert
     583      $detPendingNormStatImfile_DB_revert ++
     584      if ($detPendingNormStatImfile_DB_revert >= $DB:n) set detPendingNormStatImfile_DB_revert = 0
     585    end
     586    echo $run
     587    command $run
     588  end
     589
     590  # success
     591  task.exit    0
     592  end
     593
     594  # locked list
     595  task.exit    default
     596    showcommand failure
     597  end
     598
     599  task.exit    crash
     600    showcommand crash
     601  end
     602
     603  # operation times out?
     604  task.exit    timeout
     605    showcommand timeout
     606  end
     607end
  • branches/eam_branches/ipp-20100621/ippTasks/detrend.process.pro

    r23480 r28794  
    5151end
    5252
     53macro detproc.revert.off
     54  task detrend.process.revert
     55    active false
     56  end
     57  task detrend.processexp.revert
     58    active false
     59  end
     60end
     61
     62macro detproc.revert.on
     63  task detrend.process.revert
     64    active true
     65  end
     66  task detrend.processexp.revert
     67    active true
     68  end
     69end
    5370
    5471# these variables will cycle through the known database names
    5572$detPendingProcessedImfile_DB = 0
    5673$detPendingProcessedExp_DB = 0
     74$detPendingProcessedImfile_revert_DB = 0
     75$detPendingProcessedExp_revert_DB = 0
    5776
    5877# select images ready for copy
     
    313332  end
    314333end
     334
     335task detrend.process.revert
     336  host         local
     337
     338  periods      -poll 60.0
     339  periods      -exec 1800.0
     340  periods      -timeout 120.0
     341  npending     1
     342
     343  stdout NULL
     344  stderr $LOGDIR/revert.log
     345
     346  task.exec
     347 
     348    $run = dettool -revertprocessedimfile -all-run
     349    if ($DB:n == 0)
     350      option DEFAULT
     351    else
     352      # save the DB name for the exit tasks
     353      option $DB:$detPendingProcessedImfile_revert_DB
     354      $run = $run -dbname $DB:$detPendingProcessedImfile_revert_DB
     355      $detPendingProcessedImfile_revert_DB ++
     356      if ($detPendingProcessedImfile_revert_DB >= $DB:n) set detPendingProcessedImfile_revert_DB = 0
     357    end
     358    echo $run
     359    command $run
     360  end
     361
     362  # success
     363  task.exit    0
     364  end
     365
     366  # locked list
     367  task.exit    default
     368    showcommand failure
     369  end
     370
     371  task.exit    crash
     372    showcommand crash
     373  end
     374
     375  # operation times out?
     376  task.exit    timeout
     377    showcommand timeout
     378  end
     379end
     380
     381task detrend.processexp.revert
     382  host         local
     383
     384  periods      -poll 60.0
     385  periods      -exec 1800.0
     386  periods      -timeout 120.0
     387  npending     1
     388
     389  stdout NULL
     390  stderr $LOGDIR/revert.log
     391
     392  task.exec
     393 
     394    $run = dettool -revertprocessedexp -all-run
     395    if ($DB:n == 0)
     396      option DEFAULT
     397    else
     398      # save the DB name for the exit tasks
     399      option $DB:$detPendingProcessedExp_revert_DB
     400      $run = $run -dbname $DB:$detPendingProcessedExp_revert_DB
     401      $detPendingProcessedExp_revert_DB ++
     402      if ($detPendingProcessedExp_revert_DB >= $DB:n) set detPendingProcessedExp_revert_DB = 0
     403    end
     404    echo $run
     405    command $run
     406  end
     407
     408  # success
     409  task.exit    0
     410  end
     411
     412  # locked list
     413  task.exit    default
     414    showcommand failure
     415  end
     416
     417  task.exit    crash
     418    showcommand crash
     419  end
     420
     421  # operation times out?
     422  task.exit    timeout
     423    showcommand timeout
     424  end
     425end
  • branches/eam_branches/ipp-20100621/ippTasks/detrend.resid.pro

    r23480 r28794  
    4949end
    5050
     51macro detresid.revert.on
     52  task detrend.resid.revert
     53    active true
     54  end
     55  task detrend.residexp.revert
     56    active true
     57  end
     58end
     59
     60macro detresid.revert.off
     61  task detrend.resid.revert
     62    active false
     63  end
     64  task detrend.residexp.revert
     65    active false
     66  end
     67end
     68
    5169# these variables will cycle through the known database names
    5270$detPendingResidImfile_DB = 0
    5371$detPendingResidExp_DB = 0
     72$detPendingResidImfile_revert_DB = 0
     73$detPendingResidExp_revert_DB = 0
    5474
    5575# select images ready for copy
     
    316336  end
    317337end
     338
     339task detrend.resid.revert
     340  host         local
     341
     342  periods      -poll 60.0
     343  periods      -exec 1800.0
     344  periods      -timeout 120.0
     345  npending     1
     346
     347  stdout NULL
     348  stderr $LOGDIR/revert.log
     349
     350  task.exec
     351
     352    $run = dettool -revertresidimfile -all-run
     353    if ($DB:n == 0)
     354      option DEFAULT
     355    else
     356      # save the DB name for the exit tasks
     357      option $DB:$detPendingResidImfile_revert_DB
     358      $run = $run -dbname $DB:$detPendingResidImfile_revert_DB
     359      $detPendingResidImfile_revert_DB ++
     360      if ($detPendingResidImfile_revert_DB >= $DB:n) set detPendingResidImfile_revert_DB = 0
     361    end
     362    echo $run
     363    command $run
     364  end
     365
     366  # success
     367  task.exit    0
     368  end
     369
     370  # locked list
     371  task.exit    default
     372    showcommand failure
     373  end
     374
     375  task.exit    crash
     376    showcommand crash
     377  end
     378
     379  # operation times out?
     380  task.exit    timeout
     381    showcommand timeout
     382  end
     383end
     384
     385task detrend.residexp.revert
     386  host         local
     387
     388  periods      -poll 60.0
     389  periods      -exec 1800.0
     390  periods      -timeout 120.0
     391  npending     1
     392
     393  stdout NULL
     394  stderr $LOGDIR/revert.log
     395
     396  task.exec
     397 
     398
     399    $run = dettool -revertresidexp -all-run
     400    if ($DB:n == 0)
     401      option DEFAULT
     402    else
     403      # save the DB name for the exit tasks
     404      option $DB:$detPendingResidExp_revert_DB
     405      $run = $run -dbname $DB:$detPendingResidExp_revert_DB
     406      $detPendingResidExp_revert_DB ++
     407      if ($detPendingResidExp_revert_DB >= $DB:n) set detPendingResidExp_revert_DB = 0
     408    end
     409    echo $run
     410    command $run
     411  end
     412
     413  # success
     414  task.exit    0
     415  end
     416
     417  # locked list
     418  task.exit    default
     419    showcommand failure
     420  end
     421
     422  task.exit    crash
     423    showcommand crash
     424  end
     425
     426  # operation times out?
     427  task.exit    timeout
     428    showcommand timeout
     429  end
     430end
  • branches/eam_branches/ipp-20100621/ippTasks/detrend.stack.pro

    r23480 r28794  
    3535end
    3636
     37macro detstack.revert.off
     38  task detrend.stack.revert
     39    active false
     40  end
     41end
     42
     43macro detstack.revert.on
     44  task detrend.stack.revert
     45    active true
     46  end
     47end
     48
    3749# this variable will cycle through the known database names
    3850$detPendingStackedImfile_DB = 0
     51$detPendingStackedImfile_revert_DB = 0
    3952
    4053# select images ready for detrend_stack.pl
     
    165178  end
    166179end
     180
     181
     182task detrend.stack.revert
     183  host         local
     184
     185  periods      -poll 60.0
     186  periods      -exec 1800.0
     187  periods      -timeout 120.0
     188  npending     1
     189
     190  stdout NULL
     191  stderr $LOGDIR/revert.log
     192
     193  task.exec
     194 
     195    $run = dettool -revertstacked -all-run
     196    if ($DB:n == 0)
     197      option DEFAULT
     198    else
     199      # save the DB name for the exit tasks
     200      option $DB:$detPendingStackedImfile_revert_DB
     201      $run = $run -dbname $DB:$detPendingStackedImfile_revert_DB
     202      $detPendingStackedImfile_revert_DB ++
     203      if ($detPendingStackedImfile_revert_DB >= $DB:n) set detPendingStackedImfile_revert_DB = 0
     204    end
     205    echo $run
     206    command $run
     207  end
     208
     209  # success
     210  task.exit    0
     211  end
     212
     213  # locked list
     214  task.exit    default
     215    showcommand failure
     216  end
     217
     218  task.exit    crash
     219    showcommand crash
     220  end
     221
     222  # operation times out?
     223  task.exit    timeout
     224    showcommand timeout
     225  end
     226end
  • branches/eam_branches/ipp-20100621/ippTasks/dist.pro

    r27615 r28794  
    2828list DIST_STAGE -add "stack"
    2929list DIST_STAGE -add "SSdiff"
     30list DIST_STAGE -add "chip_bg"
     31list DIST_STAGE -add "warp_bg"
    3032
    3133$currentStage = 0
     
    145147        # to compute an index into the host table
    146148        strlen $stage_id length
    147         $start = $length - 2
    148         substr $stage_id $start 2 index
     149        if ($length >= 2)
     150            $start = $length - 2
     151            substr $stage_id $start 2 index
     152        else
     153            # stage_id < 10 caused a very annoying couple of hours for bills to debug
     154            substr $stage_id 0 1 index
     155        end
    149156        $component_id = $index % $count
    150157        book getword ipphosts distribution $component_id -var myhost
     
    409416
    410417    # using $DIST_ID as the "component" works fine here since we only look
    411     # at the last two digits
    412     set.dist.workdir.by.component $STAGE_ID "exposure" $OUTDIR_TEMPLATE OUTDIR
     418    # at the last two digits. But make sure that there 2 digits
     419    $fake_component = $STAGE_ID + 10
     420    set.dist.workdir.by.component $fake_component "exposure" $OUTDIR_TEMPLATE OUTDIR
    413421    if ("$OUTDIR" == "NULL")
    414422        echo ERROR failed to set workdir for $DIST_ID
  • branches/eam_branches/ipp-20100621/ippTasks/dqstats.pro

    r27304 r28794  
    3737  task dqstats.revert
    3838    active false
     39  end
     40end
     41
     42macro dqstats.revert.on
     43  task dqstats.revert
     44    active true
     45  end
     46end
     47
     48macro dqstats.revert.off
     49  task dqstats.revert
     50    active true
    3951  end
    4052end
     
    109121
    110122  ## we want only a single outstanding dqstats job. 
    111   host         local
    112123  npending     1
    113124
     
    187198  periods      -timeout 120.0
    188199  npending     1
     200  active       false
    189201
    190202  stdout NULL
  • branches/eam_branches/ipp-20100621/ippTasks/ipphosts.mhpcc.config

    r28439 r28794  
    253253END
    254254
    255 # this list is no longer used
    256 # XXX : delete if this does not cause trouble
    257 ## ipphosts METADATA
    258 ##   camera STR distribution
    259 ##   count  S32  26
    260 ##   0      STR ipp021
    261 ##   1      STR ipp023
    262 ##   2      STR ipp024
    263 ##   3      STR ipp026
    264 ##   4      STR ipp028
    265 ##   5      STR ipp029
    266 ##   6      STR ipp030
    267 ##   7      STR ipp031
    268 ##   8      STR ipp032
    269 ##   9      STR ipp033
    270 ##  10      STR ipp034
    271 ##  11      STR ipp035
    272 ##  12      STR ipp036
    273 ##  13      STR ipp038
    274 ##  14      STR ipp039
    275 ##  15      STR ipp040
    276 ##  16      STR ipp041
    277 ##  17      STR ipp043
    278 ##  18      STR ipp044
    279 ##  19      STR ipp045
    280 ##  20      STR ipp046
    281 ##  21      STR ipp047
    282 ##  22      STR ipp048
    283 ##  23      STR ipp050
    284 ##  24      STR ipp051
    285 ##  25      STR ipp052
    286 ## END
     255ipphosts METADATA
     256  camera STR distribution
     257  count  S32  26
     258  0      STR ipp021
     259  1      STR ipp023
     260  2      STR ipp024
     261  3      STR ipp026
     262  4      STR ipp028
     263  5      STR ipp029
     264  6      STR ipp030
     265  7      STR ipp031
     266  8      STR ipp032
     267  9      STR ipp033
     268 10      STR ipp034
     269 11      STR ipp035
     270 12      STR ipp036
     271 13      STR ipp038
     272 14      STR ipp039
     273 15      STR ipp040
     274 16      STR ipp041
     275 17      STR ipp043
     276 18      STR ipp044
     277 19      STR ipp045
     278 20      STR ipp046
     279 21      STR ipp047
     280 22      STR ipp048
     281 23      STR ipp050
     282 24      STR ipp051
     283 25      STR ipp052
     284END
    287285
    288286ipphosts METADATA
  • branches/eam_branches/ipp-20100621/ippTasks/nightly_stacks.pro

    r28439 r28794  
    1616    ns.initday.off
    1717    ns.detrends.off
     18    ns.dqstats.off
    1819    ns.registration.off
    1920    ns.burntool.off
     
    2324
    2425macro ns.on
    25     ns.initday.on
    26     ns.detrends.off
    27     ns.registration.on
    28     ns.burntool.on
    29     ns.chips.on
    30     ns.stacks.on
     26    nightly.stacks.on
    3127end
    3228
    3329macro ns.off
    34     ns.initday.off
    35     ns.detrends.off
    36     ns.registration.off
    37     ns.burntool.off
    38     ns.chips.off
    39     ns.stacks.off
     30    nightly.stacks.off
    4031end
    4132
  • branches/eam_branches/ipp-20100621/ippTasks/pantasks.pro

    r27677 r28794  
    242242end
    243243
     244macro detrend.revert.off
     245  detproc.revert.off
     246  detstack.revert.off
     247  detnorm.revert.off
     248  detresid.revert.off
     249end
     250
     251macro detrend.revert.on
     252  detproc.revert.on
     253  detstack.revert.on
     254  detnorm.revert.on
     255  detresid.revert.on
     256end
     257
    244258macro detrend.reset
    245259  detproc.reset
     
    251265
    252266macro all.on
    253   register.on
    254267  detrend.on
    255268  flatcorr.on
     
    264277
    265278macro all.off
    266   register.off
    267279  detrend.off
    268280  flatcorr.off
     
    721733end
    722734
     735macro tasks.revert.off
     736    chip.revert.off
     737    camera.revert.off
     738    fake.revert.off
     739    warp.revert.off
     740    diff.revert.off
     741    stack.revert.off
     742end
     743macro tasks.revert.on
     744    chip.revert.on
     745    camera.revert.on
     746    fake.revert.on
     747    warp.revert.on
     748    diff.revert.on
     749    stack.revert.on
     750end
     751
  • branches/eam_branches/ipp-20100621/ippTasks/pstamp.pro

    r27874 r28794  
    188188        add_poll_args run
    189189        add_poll_labels run
     190        # limit number of requests in the queue to avoid blocking everything
     191        # when jobs take an infinite amount of time to parse
     192        $run = $run -limit 10
    190193        command $run
    191194    end
  • branches/eam_branches/ipp-20100621/ippTasks/rcserver.pro

    r27035 r28794  
    1212### Database lists
    1313$rcPendingFS_DB = 0
     14$rcRevertFS_DB = 0
    1415
    1516### Check status of tasks
     
    3839  task rcserver.makefileset.run
    3940    active false
     41  end
     42  task rcserver.revert
     43    active false
     44  end
     45end
     46
     47macro rcserver.revert.on
     48  task rcserver.revert
     49    active true
    4050  end
    4151end
     
    156166  end
    157167end
     168
     169
     170task rcserver.revert
     171  host         local
     172
     173  periods      -poll 60.0
     174  periods      -exec 1800.0
     175  periods      -timeout 120.0
     176  npending     1
     177
     178  stdout NULL
     179  stderr $LOGSUBDIR/revert.log
     180
     181  task.exec
     182    if ($LABEL:n == 0) break
     183    $run = disttool -revertfileset
     184    if ($DB:n == 0)
     185      option DEFAULT
     186    else
     187      # save the DB name for the exit tasks
     188      option $DB:$rcRevertFS_DB
     189      $run = $run -dbname $DB:$rcRevertFS_DB
     190      $rcRevertFS_DB ++
     191      if ($rcRevertFS_DB >= $DB:n) set rcRevertFS_DB = 0
     192    end
     193    add_poll_labels run
     194    command $run
     195  end
     196
     197  # success
     198  task.exit    0
     199  end
     200
     201  # locked list
     202  task.exit    default
     203    showcommand failure
     204  end
     205
     206  task.exit    crash
     207    showcommand crash
     208  end
     209
     210  # operation times out?
     211  task.exit    timeout
     212    showcommand timeout
     213  end
     214end
  • branches/eam_branches/ipp-20100621/ippTasks/simtest.pro

    r26978 r28794  
    159159  $SIMTEST_AUTO = simtest.flatcorr.auto
    160160end
    161 
    162 macro tasks.revert.off
    163     chip.revert.off
    164     camera.revert.off
    165     fake.revert.off
    166     warp.revert.off
    167     diff.revert.off
    168     stack.revert.off
    169 end
    170 macro tasks.revert.on
    171     chip.revert.on
    172     camera.revert.on
    173     fake.revert.on
    174     warp.revert.on
    175     diff.revert.on
    176     stack.revert.on
    177 end
  • branches/eam_branches/ipp-20100621/ippTasks/stack.pro

    r28375 r28794  
    126126      # save the DB name for the exit tasks
    127127      option $DB:$stackSkycell_DB
    128       $run = $run -dbname $DB:$stackSkycell_DB -limit 40
     128      $run = $run -dbname $DB:$stackSkycell_DB
    129129      $stackSkycell_DB ++
    130130      if ($stackSkycell_DB >= $DB:n) set stackSkycell_DB = 0
     
    132132    add_poll_args run
    133133    add_poll_labels run
     134    # reduce the limit (the last one takes precedence)
     135    $run = $run -limit 40
    134136    command $run
    135137  end
Note: See TracChangeset for help on using the changeset viewer.