IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 9, 2009, 1:56:50 PM (17 years ago)
Author:
bills
Message:

change disttool -pendingcomponent to output "$outroot.$dist_id" as outdir to help make it unique
allow 'clean' raw stage distributions. (Database information only.) This is required to
support mirrors with chip stage and beyond images but not raw data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/dist.pro

    r23702 r23777  
    131131    book getword distToProcess $pageName state -var STATE
    132132    book getword distToProcess $pageName data_state -var DATA_STATE
     133    book getword distToProcess $pageName quality -var QUALITY
    133134    book getword distToProcess $pageName no_magic -var NO_MAGIC
    134135    book getword distToProcess $pageName magicked -var MAGICKED
    135     book getword distToProcess $pageName outroot -var OUTROOT
     136    book getword distToProcess $pageName outdir -var OUTDIR
    136137    book getword distToProcess $pageName dbname -var DBNAME
    137138
    138     $EXTRA_FLAGS = ""
     139    $EXTRA_ARGS = ""
    139140    if ("$CLEAN" == "T")
    140         $EXTRA_FLAGS = --clean
     141        $EXTRA_ARGS = --clean
    141142    end
    142143    # magicked is output as integer due to the union in the sql
    143144    if ($MAGICKED)
    144         $EXTRA_FLAGS = $EXTRA_FLAGS --magicked
     145        $EXTRA_ARGS = $EXTRA_ARGS --magicked
    145146    end
    146147    # no_magic is output as integer due to the union in the sql
    147148    if ($NO_MAGIC)
    148         $EXTRA_FLAGS = $EXTRA_FLAGS --no_magic
     149        $EXTRA_ARGS = $EXTRA_ARGS --no_magic
     150    end
     151    if ($QUALITY)
     152        $EXTRA_ARGS = $EXTRA_ARGS --poor_quality
    149153    end
    150154
     
    153157    host anyhost
    154158
    155     sprintf logfile "%s/dist.%s.%s.log" $OUTROOT $DIST_ID $COMPONENT
     159    sprintf logfile "%s.%s/dist.%s.%s.log" $OUTDIR $DIST_ID $COMPONENT
    156160    stdout $logfile
    157161    stderr $logfile
    158162
    159     $run = dist_component.pl --dist_id $DIST_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --chip_path_base $CHIP_PATH_BASE --state $STATE --data_state $DATA_STATE $EXTRA_FLAGS --outroot $OUTROOT --logfile $logfile
     163    $run = dist_component.pl --dist_id $DIST_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --chip_path_base $CHIP_PATH_BASE --state $STATE --data_state $DATA_STATE $EXTRA_ARGS --outdir $OUTDIR --logfile $logfile
    160164
    161165    add_standard_args run
     
    251255    book getword distToAdvance $pageName stage   -var STAGE
    252256    book getword distToAdvance $pageName stage_id -var STAGE_ID
    253     book getword distToAdvance $pageName outroot -var OUTROOT
     257    book getword distToAdvance $pageName outdir -var OUTDIR
    254258
    255259    host anyhost
    256260
    257     sprintf logfile "%s/dist.advance.%s.log" $OUTROOT $DIST_ID
     261    sprintf logfile "%s/dist.advance.%s.log" $OUTDIR $DIST_ID
    258262    stdout $logfile
    259263    stderr $logfile
    260264
    261     $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --outroot $OUTROOT --logfile $logfile
     265    $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --outdir $OUTDIR --logfile $logfile
    262266    add_standard_args run
    263267
Note: See TracChangeset for help on using the changeset viewer.