IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 19, 2011, 1:27:24 PM (15 years ago)
Author:
bills
Message:

add disttool -startover mode which causes a distRun to be queued for
a run even if one already exists

File:
1 edited

Legend:

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

    r32942 r32975  
    3434static bool updaterunMode(pxConfig *config);
    3535static bool revertrunMode(pxConfig *config);
    36 static bool rerunMode(pxConfig *config);
     36static bool startoverMode(pxConfig *config);
    3737static bool pendingcomponentMode(pxConfig *config);
    3838static bool addprocessedcomponentMode(pxConfig *config);
     
    8686        MODECASE(DISTTOOL_MODE_UPDATERUN, updaterunMode);
    8787        MODECASE(DISTTOOL_MODE_REVERTRUN, revertrunMode);
    88         MODECASE(DISTTOOL_MODE_RERUN, rerunMode);
     88        MODECASE(DISTTOOL_MODE_STARTOVER, startoverMode);
    8989        MODECASE(DISTTOOL_MODE_PENDINGCOMPONENT, pendingcomponentMode);
    9090        MODECASE(DISTTOOL_MODE_ADDPROCESSEDCOMPONENT, addprocessedcomponentMode);
     
    168168
    169169    PXOPT_LOOKUP_BOOL(single, config->args, "-singlefilter", false);
     170    PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false);
    170171
    171172    if (use_alternate) {
     
    407408            psStringAppend(&query, " AND (camRun.state = 'full')");
    408409        }
     410    }
     411    if (!rerun) {
     412        psStringAppend(&query, " AND (distRun.dist_id IS NULL)");
    409413    }
    410414
     
    646650}
    647651
    648 static bool rerunMode(pxConfig *config)
     652static bool startoverMode(pxConfig *config)
    649653{
    650654    psMetadata *where = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.