IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35356


Ignore:
Timestamp:
Apr 4, 2013, 10:21:29 AM (13 years ago)
Author:
bills
Message:

include registered as submit time in listing.
List requests in state 'parsed' which will be used for previews.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pstamp/scripts/psstatus

    r30692 r35356  
    6868    IFNULL(depcount, 0) AS 'Image updates'
    6969    , timestamp AS 'last state change (UTC)'
     70    , registered AS 'Submit time (UTC)'
    7071FROM (
    7172    SELECT
     
    7778        pstampRequest.fault,
    7879        timestamp,
     80        registered,
    7981        IFNULL(priority,10000) AS priority
    8082FROM pstampRequest
    8183LEFT JOIN Label USING(label)
    8284    WHERE pstampRequest.state = 'run' or pstampRequest.state ='new'
     85        OR pstampRequest.state = 'parsed'
    8386   --     OR pstampRequest.state = 'run.wait'
    8487) as unfinishedReq
     
    8992FROM pstampRequest JOIN pstampJob USING(req_id)
    9093    WHERE (pstampRequest.state = 'run' or pstampRequest.state = 'new'
    91         OR pstampRequest.state = 'run.wait')
     94        OR pstampRequest.state = 'run.wait'
     95        OR pstampRequest.state = 'parsed')
    9296    GROUP BY req_id
    9397) as rowCounts
     
    101105    JOIN pstampDependent USING(dep_id)
    102106    WHERE (pstampRequest.state = 'run' or pstampRequest.state = 'new'
     107            OR pstampRequest.state = 'parsed'
    103108            OR pstampRequest.state = 'run.wait')
    104109        AND dep_id > 0
     
    178183    IFNULL(faulted,0) AS 'Faulted Jobs',
    179184    IFNULL(depcount, 0) AS 'Image updates completed',
    180     timestamp AS 'Completion Time (UTC)'
     185    timestamp AS 'Completion Time (UTC)',
     186    registered AS 'Submit Time (UTC)'
    181187FROM (
    182188    SELECT
     
    187193--    pstampRequest.state,
    188194--    pstampRequest.fault,
    189     timestamp
     195    timestamp,
     196    registered
    190197FROM pstampRequest
    191198    WHERE pstampRequest.state = 'stop'
Note: See TracChangeset for help on using the changeset viewer.