IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 25, 2009, 3:30:28 PM (17 years ago)
Author:
bills
Message:

Modernize reverting of errors.
If pstampRequest.state = 'new' previous try at parsing was incomplete so delete any existing jobs
Only revert requests if the state is not 'stop'.
Only revert jobs if request and job state is 'run'

File:
1 edited

Legend:

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

    r25108 r25199  
    1 SELECT *
    2  FROM pstampJob
    3  WHERE state = 'run'
    4     AND fault = 0
     1SELECT pstampJob.*
     2FROM pstampJob
     3    JOIN pstampRequest using(req_id)
     4WHERE pstampRequest.state = 'run'
     5    AND pstampRequest.fault = 0
     6    AND pstampJob.state = 'run'
     7    AND pstampJob.fault = 0
Note: See TracChangeset for help on using the changeset viewer.