IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28022


Ignore:
Timestamp:
May 19, 2010, 11:32:49 AM (16 years ago)
Author:
bills
Message:

Don't set run to update unless it has never been magicked or if the
magicDSFile has been cleaned

Location:
trunk/ippTools/share
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/chiptool_setimfiletoupdate.sql

    r27391 r28022  
    11UPDATE chipRun
    22    JOIN chipProcessedImfile USING(chip_id)
     3    LEFT JOIN magicDSRun ON (stage_id = chip_id AND stage = 'chip')
     4    LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     5                              AND component = class_id)
    36SET chipRun.state = 'update',
    47    chipProcessedImfile.data_state = 'update'
     
    710    AND (chipRun.state = 'cleaned' OR chipRun.state = 'update')
    811    AND (chipProcessedImfile.data_state = 'cleaned')
     12    -- don't queue update if the associated magicDSFile exists
     13    AND (chipRun.magicked = 0
     14      OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
     15            AND magicDSFile.component IS NULL)
  • trunk/ippTools/share/difftool_setskyfiletoupdate.sql

    r27794 r28022  
    11UPDATE diffRun
    22    JOIN diffSkyfile USING(diff_id)
     3    LEFT JOIN magicDSRun ON (stage_id = diff_id AND stage = 'diff')
     4    LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     5                              AND component = skycell_id)
    36SET diffRun.state = 'update',
    47    diffSkyfile.data_state = 'update'
     
    710    AND (diffRun.state = 'cleaned' OR diffRun.state = 'update')
    811    AND (diffSkyfile.data_state = 'cleaned')
     12    -- don't queue update if the associated magicDSFile still exists
     13    AND (diffRun.magicked = 0
     14      OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
     15            AND magicDSFile.component IS NULL)
  • trunk/ippTools/share/warptool_setskyfiletoupdate.sql

    r27737 r28022  
    11UPDATE warpRun
    22    JOIN warpSkyfile USING(warp_id)
     3    LEFT JOIN magicDSRun ON (stage_id = warp_id AND stage = 'warp')
     4    LEFT JOIN magicDSFile ON (magicDSRun.magic_ds_id = magicDSFile.magic_ds_id
     5                              AND component = skycell_id)
    36SET warpRun.state = 'update',
    47    warpSkyfile.data_state = 'update'
     
    710    AND (warpRun.state = 'cleaned' OR warpRun.state = 'update')
    811    AND (warpSkyfile.data_state = 'cleaned')
     12    AND (warpRun.magicked = 0
     13      OR (magicDSRun.state = 'cleaned' OR magicDSRun.state = 'new')
     14      AND magicDSFile.component IS NULL)
Note: See TracChangeset for help on using the changeset viewer.