IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2015, 1:54:16 PM (11 years ago)
Author:
bills
Message:

Add a task to queue cleanup of images that have been updated for postage stamp requests.
It runs twice a day and discovers whether or not there are any unfinished postage stamp
dependents. If not queues all of the chip, warp, and diff runs in gpc1 database with label like ps_ud%
to be cleaned. If there are outstanding dependents it does not queue the updates since we don't
want to cause problems with the postage stamp jobs that are depending on them.
This should be much better than the formerly manual process which got done whenever Bill happened to think of it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pstamptool.c

    r38207 r38586  
    14351435    PXOPT_LOOKUP_U64(limit, config->args, "-limit", false, false);
    14361436    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     1437    PXOPT_LOOKUP_BOOL(includeFaulted, config->args, "-includefaulted", false);
    14371438
    14381439    psString query = pxDataGet("pstamptool_pendingdependent.sql");
     
    14421443    }
    14431444
     1445    if (!includeFaulted) {
     1446        psStringAppend(&query, "    AND (pstampDependent.fault = 0)\n");
     1447    }
     1448
    14441449    if (psListLength(where->list)) {
    14451450        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
    1446         psStringAppend(&query, " AND %s", whereClause);
     1451        psStringAppend(&query, "\n    AND %s", whereClause);
    14471452        psFree(whereClause);
    14481453    }
    14491454    psFree(where);
    14501455
    1451     psStringAppend(&query, " GROUP BY dep_id ORDER BY priority DESC, MIN(req_id), dep_id");
     1456    psStringAppend(&query, "\nGROUP BY dep_id ORDER BY priority DESC, MIN(req_id), dep_id");
    14521457
    14531458    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.