IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29561 for trunk/ippTools/share


Ignore:
Timestamp:
Oct 26, 2010, 8:39:32 AM (16 years ago)
Author:
bills
Message:

Change the destreak cleanup to preserve the rows in the magicDSFile table

Location:
trunk/ippTools/share
Files:
4 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r29528 r29561  
    238238        magictool_exposure.sql \
    239239        magicdstool_clearstatefaults.sql \
     240        magicdstool_change_file_data_state.sql \
     241        magicdstool_change_run_state.sql \
    240242        magicdstool_completed_runs.sql \
    241243        magicdstool_completedrevert.sql \
     
    252254        magicdstool_getskycells.sql \
    253255        magicdstool_revertdestreakedfile.sql \
     256        magicdstool_revertupdated.sql \
     257        magicdstool_setfiletoupdate.sql \
    254258        magicdstool_tocleanup.sql \
    255259        magicdstool_todestreak_camera.sql \
  • trunk/ippTools/share/chiptool_setimfiletoupdate.sql

    r28934 r29561  
    1111    AND (chipRun.state = 'cleaned' OR chipRun.state = 'update')
    1212    AND (chipProcessedImfile.data_state = 'cleaned')
    13     -- don't queue update if the associated magicDSFile exists
     13    -- don't queue update if the associated magicDSFile exists and isn't cleaned
    1414    AND (chipRun.magicked = 0
    15       OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
    16             AND magicDSFile.component IS NULL)
     15      OR ((magicDSRun.state = 'cleaned' OR magicDSRun.state = 'update')
     16            AND (magicDSFile.data_state = 'cleaned`' OR magicDSFile.data_state = 'update'))
     17    )
  • trunk/ippTools/share/magicdstool_todestreak_camera.sql

    r29495 r29561  
    22    magicDSRun.magic_ds_id,
    33    magicDSRun.magic_id,
     4    magicDSRun.state,
    45    chipRun.exp_id,
    56    camRun.magicked,
  • trunk/ippTools/share/magicdstool_todestreak_chip.sql

    r29495 r29561  
    22    magicDSRun.magic_ds_id,
    33    magicDSRun.magic_id,
     4    magicDSRun.state,
    45    chipRun.exp_id,
    56    chipRun.magicked,
     
    3738    ON magicDSRun.label = Label.label
    3839WHERE
    39     magicDSRun.state = 'new'
     40    ((magicDSRun.state = 'new' AND magicDSFile.component IS NULL)
     41     OR (magicDSRun.state = 'update' AND magicDSFile.data_state = 'update'
     42         AND magicDSFile.fault = 0))
    4043    AND magicDSRun.stage = 'chip'
    4144    AND (chipRun.state = 'full' OR (chipRun.state = 'update' and chipProcessedImfile.data_state = 'full'))
    4245    AND chipProcessedImfile.fault = 0
    4346    AND chipProcessedImfile.quality = 0
    44     AND magicDSFile.component IS NULL
    4547    AND (Label.active OR Label.active IS NULL)
  • trunk/ippTools/share/magicdstool_todestreak_diff.sql

    r29495 r29561  
    33    magicDSRun.magic_ds_id,
    44    magicRun.magic_id,
     5    magicDSRun.state,
    56    magicRun.exp_id,
    67    magicDSRun.label,
     
    5051    magicDSRun.magic_ds_id,
    5152    magicRun.magic_id,
     53    magicDSRun.state,
    5254    magicRun.exp_id,
    5355    magicDSRun.label,
  • trunk/ippTools/share/magicdstool_todestreak_raw.sql

    r29495 r29561  
    22    magicDSRun.magic_ds_id,
    33    magicRun.magic_id,
     4    magicDSRun.state,
    45    magicRun.exp_id,
    56    magicDSRun.label,
  • trunk/ippTools/share/magicdstool_todestreak_warp.sql

    r29495 r29561  
    22    magicDSRun.magic_ds_id,
    33    magicRun.magic_id,
     4    magicDSRun.state,
    45    magicRun.exp_id,
    56    magicDSRun.label,
  • trunk/ippTools/share/magicdstool_torevert_chip.sql

    r28853 r29561  
    2222    JOIN rawExp ON chipRun.exp_id = rawExp.exp_id
    2323WHERE magicDSRun.stage = 'chip'
    24     AND ((magicDSRun.state = 'new' AND magicDSFile.fault > 0)
     24    AND (((magicDSRun.state = 'new' OR (magicDSRun.state = 'update'))
     25            AND magicDSFile.fault > 0)
     26            -- why don't we require a fault for these states?
    2527         OR ((magicDSRun.state = 'goto_censored' OR magicDSRun.state = 'goto_restored')
    2628              AND ((backup_path_base IS NOT NULL) OR (recovery_path_base IS NOT NULL))
Note: See TracChangeset for help on using the changeset viewer.