IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31855


Ignore:
Timestamp:
Jul 10, 2011, 2:15:59 PM (15 years ago)
Author:
eugene
Message:

adjust code to set long/short exec periods so it does not leave behind unexpected short periods

Location:
tags/ipp-20110622/ippTasks
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110622/ippTasks/diskbalance.pro

    r31644 r31855  
    180180
    181181  task.exec
     182    # if we are unable to run the 'exec', use a long retry time
     183    periods -exec 5
     184
    182185    book npages balancePending -var N
    183186    if ($NETWORK == 0) break
    184     if ($N == 0)
    185         periods -exec 5
    186         break
    187     end
    188     # Reset the speed if we're doing something
    189     periods -exec 0.5
     187    if ($N == 0) break
    190188
    191189    # look for new objects in balancePending
     
    214212        echo command $run
    215213    end
     214    periods -exec 0.05
    216215    command $run
    217216  end
  • tags/ipp-20110622/ippTasks/dist.pro

    r30929 r31855  
    244244
    245245  task.exec
     246    periods -exec 10
     247
     248    book npages distToProcess -var N
     249    if ($N == 0) break
    246250    if ($NETWORK == 0) break
    247     book npages distToProcess -var N
    248     if ($N == 0)
    249         periods -exec 10
    250         break
    251     end
    252     periods -exec 0.05
    253    
     251   
    254252    # look for new components to process (pantaskState == INIT)
    255253    book getpage distToProcess 0 -var pageName -key pantaskState INIT
     
    326324      echo command $run
    327325    end
     326    periods -exec 0.05
    328327    command $run
    329328  end
  • tags/ipp-20110622/ippTasks/fake.pro

    r27472 r31855  
    121121
    122122  task.exec
     123    # if we are unable to run the 'exec', use a long retry time
     124    periods -exec $RUNEXEC
     125
    123126    # fake is fast, so generate a bunch of commands in a row
    124127    book npages fakePendingImfile -var N
    125     if ($N == 0)
    126        periods -exec $RUNEXEC
    127        break
    128     end
    129     periods -exec 0.05
    130 
     128    if ($N == 0) break
    131129    if ($NETWORK == 0) break
    132130   
     
    172170      echo command $run
    173171    end
     172    # if we are able to run the 'exec', use a short retry time
     173    periods -exec 0.05
    174174    command $run
    175175  end
  • tags/ipp-20110622/ippTasks/lossy_compress.pro

    r28139 r31855  
    122122
    123123    task.exec
     124        periods -exec $RUNEXEC
     125
     126        book npages compPendingCompress -var N
     127        if ($N == 0) break
    124128        if ($NETWORK == 0) break
    125         book npages compPendingCompress -var N
    126         if ($N == 0)
    127             periods -exec $RUNEXEC
    128             break
    129         end
    130         periods -exec 0.05
    131129
    132130        # look for new images
     
    171169            echo command $run
    172170        end
     171        periods -exec 0.05
    173172        command $run
    174173    end
     
    248247
    249248    task.exec
     249        periods -exec $RUNEXEC
     250
     251        book npages compPendingClean -var N
     252        if ($N == 0) break
    250253        if ($NETWORK == 0) break
    251         book npages compPendingClean -var N
    252         if ($N == 0)
    253             periods -exec $RUNEXEC
    254             break
    255         end
    256         periods -exec 0.05
    257254
    258255        # look for new images
     
    297294            echo command $run
    298295        end
     296        periods -exec 0.05
    299297        command $run
    300298    end
  • tags/ipp-20110622/ippTasks/magic.cleanup.pro

    r30373 r31855  
    116116
    117117  task.exec
     118    periods -exec $RUNEXEC
     119
    118120    book npages magicToCleanup -var N
    119     if ($N == 0)
    120         periods -exec $RUNEXEC
    121         break
    122     end
     121    if ($N == 0) break
    123122    if ($NETWORK == 0) break
    124123   
  • tags/ipp-20110622/ippTasks/magic.pro

    r29494 r31855  
    269269
    270270  task.exec
     271    periods -exec 10
     272
    271273    book npages magicToProcess -var N
    272     if ($N == 0)
    273       periods -exec 10
    274       break
    275     end
    276     periods -exec 0.05
    277 
     274    if ($N == 0) break
    278275    if ($NETWORK == 0) break
    279276   
     
    342339      echo command $run
    343340    end
     341    periods -exec 0.05
    344342    command $run
    345343  end
  • tags/ipp-20110622/ippTasks/pstamp.pro

    r30799 r31855  
    512512
    513513    task.exec
     514        periods -exec $RUNEXEC
     515
    514516        stdout NULL
    515517        stderr $LOGSUBDIR/pstamp.job.run.log
    516518        book npages pstampJob -var N
    517         if ($N == 0)
    518             periods -exec $RUNEXEC
    519             break
    520         end
    521         periods -exec 0.05
     519        if ($N == 0) break
    522520       
    523521        book getpage pstampJob 0 -var pageName -key pantaskState INIT
     
    548546            echo command $run
    549547        end
     548        periods -exec 0.05
    550549        command $run
    551550    end
     
    681680
    682681    task.exec
     682        periods -exec $RUNEXEC
     683
    683684        book npages pstampDependent -var N
    684         if ($N == 0)
    685             periods -exec $RUNEXEC
    686             break
    687         end
    688         periods -exec 0.05
     685        if ($N == 0) break
    689686       
    690687        book getpage pstampDependent 0 -var pageName -key pantaskState INIT
     
    729726            echo command $run
    730727        end
     728        periods -exec 0.05
    731729        command $run
    732730    end
     
    820818
    821819    task.exec
     820        periods -exec $RUNEXEC
     821
    822822        book npages pstampCleanup -var N
    823         if ($N == 0)
    824             periods -exec $RUNEXEC
    825             break
    826         end
    827         periods -exec 0.05
     823        if ($N == 0) break
    828824       
    829825        book getpage pstampCleanup 0 -var pageName -key pantaskState INIT
     
    854850            echo command $run
    855851        end
     852        periods -exec 0.05
    856853        command $run
    857854    end
  • tags/ipp-20110622/ippTasks/rcserver.pro

    r30555 r31855  
    110110
    111111  task.exec
     112    periods -exec 10
     113
    112114    book npages rcPendingFS -var N
    113     if ($N == 0)
    114         periods -exec 10
    115         break
    116     end
    117     periods -exec 0.05
    118 
     115    if ($N == 0) break
    119116    if ($NETWORK == 0) break
    120117   
     
    153150      echo command $run
    154151    end
     152    periods -exec 0.05
    155153    command $run
    156154  end
  • tags/ipp-20110622/ippTasks/register.pro

    r31603 r31855  
    271271
    272272  task.exec
     273    periods -exec $RUNEXEC
     274
     275    book npages regPendingImfile -var N
     276    if ($N == 0) break
    273277    if ($NETWORK == 0) break
    274     book npages regPendingImfile -var N
    275     if ($N == 0)
    276         periods -exec $RUNEXEC
    277         break
    278     end
    279     periods -exec 0.05
    280278   
    281279    # look for new images in regPendingImfile
     
    331329      echo command $run
    332330    end
     331    periods -exec 0.05
    333332    command $run
    334333  end
     
    636635
    637636  task.exec
     637    periods -exec $RUNEXEC
     638
     639    book npages regPendingBurntoolImfile -var N
     640    if ($N == 0) break
    638641    if ($NETWORK == 0) break
    639     book npages regPendingBurntoolImfile -var N
    640     if ($N == 0)
    641       periods -exec $RUNEXEC
    642       break
    643     end
    644     periods -exec 0.05
    645642
    646643    # look for new images to burn in regPendingBurntoolImfile
     
    673670      echo command $run
    674671    end
     672    periods -exec 0.05
    675673    command $run
    676674  end
  • tags/ipp-20110622/ippTasks/replicate.pro

    r29409 r31855  
    154154
    155155  task.exec
     156    periods -exec 5
     157
    156158    book npages replicatePending -var N
     159    if ($N == 0) break
    157160    if ($NETWORK == 0) break
    158     if ($N == 0)
    159         periods -exec 5
    160         break
    161     end
    162     periods -exec 0.05
    163161   
    164162    # look for new objects in replicatePending
     
    190188      echo command $run
    191189    end
     190    periods -exec 0.05
    192191    command $run
    193192  end
  • tags/ipp-20110622/ippTasks/science.cleanup.pro

    r29677 r31855  
    114114
    115115  task.exec
     116    periods -exec $RUNEXEC
     117
    116118    book npages chipPendingCleanup -var N
    117     if ($N == 0)
    118         periods -exec $RUNEXEC
    119         break
    120     end
     119    if ($N == 0) break
    121120    if ($NETWORK == 0) break
    122121   
     
    574573
    575574  task.exec
     575    periods -exec $RUNEXEC
     576
    576577    book npages warpPendingCleanup -var N
    577     if ($N == 0)
    578         periods -exec $RUNEXEC
    579         break
    580     end
     578    if ($N == 0) break
    581579    if ($NETWORK == 0) break
    582580   
     
    730728
    731729  task.exec
     730    periods -exec $RUNEXEC
     731
    732732    book npages diffCleanup -var N
    733     if ($N == 0)
    734         periods -exec $RUNEXEC
    735         break
    736     end
     733    if ($N == 0) break
    737734    if ($NETWORK == 0) break
    738735   
     
    10311028
    10321029  task.exec
     1030    periods -exec $RUNEXEC
     1031
    10331032    book npages chipBGPendingCleanup -var N
    1034     if ($N == 0)
    1035         periods -exec $RUNEXEC
    1036         break
    1037     end
     1033    if ($N == 0) break
    10381034    if ($NETWORK == 0) break
    10391035   
     
    11851181
    11861182  task.exec
     1183    periods -exec $RUNEXEC
     1184
    11871185    book npages warpBGPendingCleanup -var N
    1188     if ($N == 0)
    1189         periods -exec $RUNEXEC
    1190         break
    1191     end
     1186    if ($N == 0) break
    11921187    if ($NETWORK == 0) break
    11931188   
  • tags/ipp-20110622/ippTasks/summit.copy.pro

    r31049 r31855  
    284284
    285285    task.exec
    286         if ($NETWORK == 0) break
     286        periods -exec 20
    287287
    288288        # if we are waiting on data, make the interval long
    289289        book npages pzPendingExp -var N
    290         if ($N == 0)
    291             periods -exec 20
    292             break
    293         end
    294         periods -exec 0.05
     290        if ($N == 0) break
     291        if ($NETWORK == 0) break
    295292
    296293        # find an exp that needs imfiles fetched
     
    321318          echo command $run
    322319        end
     320        periods -exec 0.05
    323321        command $run
    324322    end
     
    408406
    409407    task.exec
    410         if ($NETWORK == 0) break
     408        periods -exec 20
    411409
    412410        # if we are waiting on data, make the interval long
    413411        book npages pzPendingImfile -var N
    414         if ($N == 0)
    415             periods -exec 20
    416             break
    417         end
    418         periods -exec 0.05
     412        if ($N == 0) break
     413        if ($NETWORK == 0) break
    419414
    420415        # find an exp that needs imfiles fetched
     
    502497        # More debug:
    503498#       echo "DEBUG2: " $run
     499        periods -exec 0.05
    504500        command $run
    505501    end
     
    609605
    610606    task.exec
    611         if ($NETWORK == 0) break
     607        periods -exec 20
    612608
    613609        # if we are waiting on data, make the interval long
    614610        book npages pzPendingAdvance -var N
    615         if ($N == 0)
    616             periods -exec 20
    617             break
    618         end
    619         periods -exec 0.05
     611        if ($N == 0) break
     612        if ($NETWORK == 0) break
    620613
    621614        # find an exp that needs imfiles fetched
     
    661654          echo command $run
    662655        end
     656        periods -exec 0.05
    663657        command $run
    664658    end
Note: See TracChangeset for help on using the changeset viewer.