IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19558


Ignore:
Timestamp:
Sep 15, 2008, 2:21:00 PM (18 years ago)
Author:
bills
Message:

changes to support cleanup, purge, and update processing

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r19401 r19558  
    466466UPDATE warpSkyfile SET data_state = 'full';
    467467
     468ALTER TABLE fakeProcessedImfile add column data_state varchar(64) after path_base;
     469update fakeProcessedImfile set data_state ='full';
     470
  • trunk/dbconfig/fake.md

    r17877 r19558  
    2121    hostname        STR     64
    2222    path_base       STR     255
     23    data_state      STR     64      # Key
    2324    fault           S16     0       # Key NOT NULL
    2425    epoch           UTC         0001-01-01T00:00:00Z
  • trunk/ippTools/share/camtool_find_pendingexp.sql

    r19092 r19558  
    2525    WHERE
    2626        chipRun.state = 'full'
    27         AND camRun.state = 'new'
     27        AND ((camRun.state = 'new' AND camProcessedExp.cam_id IS NULL)
     28            OR camRun.state = 'update')
    2829        AND camMask.label IS NULL
    29         AND camProcessedExp.cam_id IS NULL
    3030    ) as Foo
  • trunk/ippTools/share/difftool_todiffskyfile.sql

    r19459 r19558  
    55    diffRun.tess_id,
    66    diffRun.label,
     7    diffRun.state,
    78    rawExp.camera
    89FROM diffRun
     
    2627    ON diffInputSkyfile.diff_id = diffSkyfile.diff_id
    2728WHERE
    28   diffRun.state = 'new'
    29   AND warpRun.state = 'full'
    30   AND fakeRun.state = 'full'
    31   AND camRun.state = 'full'
    32   AND chipRun.state = 'full'
    33   AND diffSkyfile.diff_id IS NULL
     29  ((diffRun.state = 'new'
     30      AND warpRun.state = 'full'
     31      AND fakeRun.state = 'full'
     32      AND camRun.state = 'full'
     33      AND chipRun.state = 'full'
     34      AND diffSkyfile.diff_id IS NULL)
     35  OR (diffRun.state = 'update'
     36      AND diffSkyfile.data_state = 'cleaned')
     37  )
  • trunk/ippTools/share/faketool_pendingimfile.sql

    r18793 r19558  
    4141        ON fakeRun.label = fakeMask.label
    4242    WHERE
    43         fakeProcessedImfile.fake_id IS NULL
    44         AND fakeProcessedImfile.class_id IS NULL
     43        ((fakeRun.state = 'new'
     44            AND fakeProcessedImfile.fake_id IS NULL
     45            AND fakeProcessedImfile.class_id IS NULL
     46        )
     47        OR (fakeRun.state = 'update'
     48            AND fakeProcessedImfile.data_state = 'cleaned')
     49        )
    4550        AND fakeMask.label IS NULL
    4651    ) as fakePendingImfile
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r19392 r19558  
    399399    hostname VARCHAR(64),
    400400    path_base VARCHAR(255),
     401    data_state VARCHAR(64),
    401402    fault SMALLINT NOT NULL,
    402403    epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  • trunk/ippTools/share/stacktool_tosum.sql

    r19434 r19558  
    55    stackRun.workdir,
    66    stackRun.label,
     7    stackRun.state,
    78    rawExp.camera
    89FROM stackRun
     
    2627    USING(stack_id)
    2728WHERE
    28     stackRun.state = 'new'
    29     AND stackSumSkyfile.stack_id IS NULL
     29    ((stackRun.state = 'new'
     30        AND stackSumSkyfile.stack_id IS NULL)
     31    OR
     32    (stackRun.state = 'update'
     33        AND stackSumSkyfile.data_state = 'cleaned'))
  • trunk/ippTools/share/warptool_towarped.sql

    r19538 r19558  
    2929    ON warpRun.label = warpMask.label
    3030WHERE
    31     warpRun.state = 'new'
     31    ((warpRun.state = 'new'
     32        AND warpSkyfile.warp_id IS NULL
     33        AND warpSkyfile.skycell_id IS NULL
     34        AND warpSkyfile.tess_id IS NULL)
     35    OR (warpRun.state = 'update'
     36        AND warpSkyfile.data_state = 'cleaned')
     37    )
    3238    AND fakeRun.state = 'full'
    3339    AND camRun.state = 'full'
    3440    AND chipRun.state = 'full'
    35     AND warpSkyfile.warp_id IS NULL
    36     AND warpSkyfile.skycell_id IS NULL
    37     AND warpSkyfile.tess_id IS NULL
     41    AND warpMask.label IS NULL
    3842    AND warpSkyCellMap.fault = 0
    39     AND warpMask.label IS NULL
  • trunk/ippTools/src/faketool.c

    r19489 r19558  
    499499                                   hostname,
    500500                                   path_base,
     501                                   "full",
    501502                                   code,
    502503                                   NULL         // epoch
Note: See TracChangeset for help on using the changeset viewer.