IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 26, 2007, 1:39:42 PM (19 years ago)
Author:
eugene
Message:

added multi-db support and workdirs to tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/phase2.pro

    r11236 r11323  
    2626end
    2727
     28# this variable will cycle through the known database names
     29$phase2_DB = 0
     30
    2831# select images ready for phase2 analysis
    2932# new entries are added to p2PendingImfile
     
    4043
    4144  task.exec
    42     command p2tool -pendingimfile -limit 20
     45    if ($DB:n == 0)
     46      option DEFAULT
     47      command p2tool -pendingimfile -limit 20
     48    else
     49      # save the DB name for the exit tasks
     50      option $DB:$phase2_DB
     51      command p2tool -pendingimfile -limit 20 -dbname $DB:$phase2_DB
     52      $phase2_DB ++
     53      if ($phase2_DB >= $DB:n) set phase2_DB = 0
     54    end
    4355  end
    4456
     
    4658  task.exit    0
    4759    # convert 'stdout' to book format
    48     ipptool2book stdout p2PendingImfile -key exp_tag:class_id -uniq
     60    ipptool2book stdout p2PendingImfile -key exp_tag:class_id -uniq -setword dbname $options:0
    4961    if ($VERBOSE > 2)
    5062      book listbook p2PendingImfile
     
    5365    # delete existing entries which are DONE
    5466    book delpage p2PendingImfile -key state DONE
     67    book delpage p2PendingImfile -key state DATA_ERR
    5568  end
    5669
     
    87100    book getword p2PendingImfile $pageName class_id -var CLASS_ID
    88101    book getword p2PendingImfile $pageName uri -var URI
     102    book getword p2PendingImfile $pageName workdir -var WORKDIR
     103    book getword p2PendingImfile $pageName dbname -var DBNAME
     104    set_standard_args
    89105
    90106    # specify choice of remote host
     
    108124    # create the command line
    109125    if ($VERBOSE > 1)
    110       echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA
     126      echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
    111127    end
    112     command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA --workdir $WORKDIR
     128    command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI --camera $CAMERA $ARGS
    113129  end
    114130
Note: See TracChangeset for help on using the changeset viewer.