Changeset 10746 for trunk/ippTasks/phase2.pro
- Timestamp:
- Dec 15, 2006, 7:14:33 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/phase2.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/phase2.pro
r9506 r10746 14 14 end 15 15 16 $Phase2ImfileFail = 0 17 18 if ($?VERBOSE == 0) 19 echo "VERBOSE not defined: load pantasks.pro first" 20 break 21 end 22 if ($?LOGDIR == 0) 23 echo "LOGDIR not defined: load pantasks.pro first" 24 break 25 end 26 $LOGSUBDIR = $LOGDIR/phase2 27 exec mkdir -p $LOGSUBDIR 28 29 macro phase2.status 30 queueprint Phase2Imfiles 31 echo "Phase2ImfileFail: $Phase2ImfileFail" 32 end 33 16 34 # select images ready for phase2 analysis 17 35 # new entries are added to queue Phase2Imfiles 18 36 # compare the new list with the ones already selected 19 37 task phase2.imfile.load 20 command p2tool -pendingimfile -simple21 38 host local 22 39 … … 25 42 periods -timeout 30 26 43 27 stdout phase2.imfile.log 28 stderr phase2.imfile.log 44 stdout $LOGSUBDIR/phase2.imfile.log 45 stderr $LOGSUBDIR/phase2.imfile.log 46 47 task.exec 48 command p2tool -pendingimfile -simple -limit {$Phase2ImfileFail + 20} 49 end 29 50 30 51 # success … … 39 60 for i 0 $Nqueue 40 61 queuepop stdout -var line 62 if ($VERBOSE > 2) 63 echo $line 64 end 41 65 list word -split $line 42 66 $EXP_TAG = $word:0 … … 52 76 # locked list 53 77 task.exit default 54 echo "phase2 pending imfiles: failure"78 showcommand failure 55 79 end 56 80 57 81 # operation times out? 58 82 task.exit timeout 59 echo "phase2 pending imfiles: timeout"83 showcommand timeout 60 84 end 61 85 end … … 96 120 97 121 ## add 'p2' to the log files? 98 $LOG_DIR = `dirname $URI` 99 stdout $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log 100 stderr $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log 122 # XXX this is still a lame rule 123 $word = `basename $EXP_TAG | tr '.' ' '` 124 list word -split $word 125 $base = $word:0 126 stdout $LOGSUBDIR/$base/$EXP_TAG.$CLASS_ID.log 127 stderr $LOGSUBDIR/$base/$EXP_TAG.$CLASS_ID.log 128 exec mkdir -p $LOGSUBDIR/$base 101 129 102 130 # create the command line 103 131 options "$line" 104 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 132 if ($VERBOSE > 1) 133 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 134 end 105 135 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 106 136 end … … 114 144 # default exit status 115 145 task.exit default 116 echo "failure for phase2imfile.pl: $options:0"146 showcommand failure 117 147 queuepush Phase2Imfiles -replace -key 1:2 "FAIL $options:0" 148 $Phase2ImfileFail ++ 118 149 end 119 150 120 151 # operation times out? 121 152 task.exit timeout 122 echo "timeout for phase2imfile.pl: $options:0"153 showcommand timeout 123 154 queuepush Phase2Imfiles -replace -key 1:2 "TIMEOUT $options:0" 155 $Phase2ImfileFail ++ 124 156 end 125 157 end
Note:
See TracChangeset
for help on using the changeset viewer.
