Changeset 11323 for trunk/ippTasks/phase3.pro
- Timestamp:
- Jan 26, 2007, 1:39:42 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/phase3.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/phase3.pro
r11210 r11323 26 26 end 27 27 28 # this variable will cycle through the known database names 29 $phase3_DB = 0 30 28 31 # select images ready for phase3 analysis 29 32 # new entries are added to p3PendingExp … … 40 43 41 44 task.exec 42 command p3tool -pendingexp -limit 20 45 if ($DB:n == 0) 46 option DEFAULT 47 command p3tool -pendingexp -limit 20 48 else 49 # save the DB name for the exit tasks 50 option $DB:$phase3_DB 51 command p3tool -pendingexp -limit 20 -dbname $DB:$phase3_DB 52 $phase3_DB ++ 53 if ($phase3_DB >= $DB:n) set phase3_DB = 0 54 end 43 55 end 44 56 … … 46 58 task.exit 0 47 59 # convert 'stdout' to book format 48 ipptool2book stdout p3PendingExp -key exp_tag -uniq 60 ipptool2book stdout p3PendingExp -key exp_tag -uniq -setword dbname $options:0 49 61 if ($VERBOSE > 2) 50 62 book listbook p3PendingExp … … 53 65 # delete existing entries which are DONE 54 66 book delpage p3PendingExp -key state DONE 67 book delpage p3PendingExp -key state DATA_ERR 55 68 end 56 69 … … 70 83 periods -poll $runpoll 71 84 periods -exec $runexec 72 periods -timeout 585 periods -timeout 10 73 86 74 87 task.exec … … 84 97 book getword p3PendingExp $pageName camera -var CAMERA 85 98 book getword p3PendingExp $pageName exp_tag -var EXP_TAG 99 book getword p3PendingExp $pageName workdir -var WORKDIR 100 book getword p3PendingExp $pageName dbname -var DBNAME 101 set_standard_args 86 102 87 103 # specify choice of remote host:(need to choose based on chips) … … 92 108 end 93 109 94 # XXX this is still a lame rule 95 $word = `basename $EXP_TAG | tr '.' ' '` 96 list word -split $word 97 $base = $word:0 98 stdout $LOGSUBDIR/$base/$EXP_TAG.log 99 stderr $LOGSUBDIR/$base/$EXP_TAG.log 100 exec mkdir -p $LOGSUBDIR/$base 110 # output log from filerule 111 $outroot = $WORKDIR/$EXP_TAG 112 $logfile = `ipp_filename.pl PHASE3.LOG $outroot $CLASS_ID` 113 stdout $logfile 114 stderr $logfile 115 exec mkdir -p $WORKDIR 101 116 102 117 # save the pageName for future reference below … … 105 120 # create the command line 106 121 if ($VERBOSE > 1) 107 echo command phase3.pl --exp_tag $EXP_TAG 122 echo command phase3.pl --exp_tag $EXP_TAG $ARGS 108 123 end 109 command phase3.pl --exp_tag $EXP_TAG --camera $CAMERA 124 command phase3.pl --exp_tag $EXP_TAG --camera $CAMERA $ARGS 110 125 end 111 126 112 127 # success 113 task.exit 0 114 # phase3exp.pl updates DB tables, here we just update the page 115 book setword p3PendingExp $options:0 state DONE 116 end 117 118 # default exit status 119 task.exit default 120 showcommand failure 121 book setword p3PendingExp $options:0 state FAIL 128 task.exit default 129 process_exit p3PendingExp $options:0 $JOB_STATUS 122 130 end 123 131
Note:
See TracChangeset
for help on using the changeset viewer.
