Changeset 10691
- Timestamp:
- Dec 12, 2006, 10:36:33 PM (19 years ago)
- Location:
- trunk/ippTasks
- Files:
-
- 2 edited
-
pantasks.pro (modified) (1 diff)
-
phase0.pro (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r10678 r10691 1 1 2 # XXX make these upper-case 2 3 $network = 1 3 4 $parallel = 1 5 $VERBOSE = 1 6 4 7 # $scripts = $HOME/src/pantasks/ipp/ippTasks 5 8 $scripts = . -
trunk/ippTasks/phase0.pro
r10675 r10691 18 18 $Phase0ExpFail = 0 19 19 20 if ($?VERBOSE == 0) 21 echo "VERBOSE not defined: load pantasks.pro first" 22 break 23 end 20 24 if ($?LOGDIR == 0) 21 25 echo "LOGDIR not defined: load pantasks.pro first" … … 24 28 $LOGSUBDIR = $LOGDIR/phase0 25 29 exec mkdir -p $LOGSUBDIR 30 31 macro phase0.status 32 queueprint Phase0Imfiles 33 queueprint Phase0Exposures 34 echo "Phase0ImfileFail: $Phase0ImfileFail" 35 echo "Phase0ExpFail: $Phase0ExpFail" 36 end 26 37 27 38 # select images ready for phase0 analysis … … 52 63 for i 0 $Nqueue 53 64 queuepop stdout -var line 54 echo $line 65 if ($VERBOSE > 2) 66 echo $line 67 end 55 68 list word -split $line 56 69 $EXP_TAG = $word:0 … … 67 80 # locked list 68 81 task.exit default 69 echo "phase0 pending imfiles: failure" 82 if ($VERBOSE) 83 echo "phase0 pending imfiles: failure" 84 end 70 85 $Phase0ImfileFail ++ 71 86 end … … 73 88 # operation times out? 74 89 task.exit timeout 75 echo "phase0 pending imfiles: timeout" 90 if ($VERBOSE) 91 echo "phase0 pending imfiles: timeout" 92 end 76 93 end 77 94 end … … 116 133 list word -split $word 117 134 $base = $word:0 118 stdout $LOGSUBDIR/$base.p0.log 119 stderr $LOGSUBDIR/$base.p0.log 135 stdout $LOGSUBDIR/$base/$EXP_TAG.p0.log 136 stderr $LOGSUBDIR/$base/$EXP_TAG.p0.log 137 exec mkdir -p $LOGSUBDIR/$base 120 138 121 139 # create the command line 122 140 options "$line" 123 echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 141 if ($VERBOSE > 1) 142 echo command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 143 end 124 144 command phase0_imfile.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 125 145 end … … 133 153 # default exit status 134 154 task.exit default 135 echo "failure for phase0imfile.pl: $options:0" 155 if ($VERBOSE) 156 echo "failure for phase0imfile.pl: $options:0" 157 end 136 158 queuepush Phase0Imfiles -replace -key 1 "FAIL $options:0" 137 159 $Phase0ImfileFail ++ … … 140 162 # operation times out? 141 163 task.exit timeout 142 echo "timeout for phase0imfile.pl: $options:0" 164 if ($VERBOSE) 165 echo "timeout for phase0imfile.pl: $options:0" 166 end 143 167 queuepush Phase0Imfiles -replace -key 1 "TIMEOUT $options:0" 144 168 end … … 192 216 # default exit status 193 217 task.exit default 194 echo "phase0 pending exp: failure" 195 end 196 197 # operation times out? 198 task.exit timeout 199 echo "phase0 pending exp: timeout" 218 if ($VERBOSE) 219 echo "phase0 pending exp: failure" 220 end 221 end 222 223 # operation times out? 224 task.exit timeout 225 if ($VERBOSE) 226 echo "phase0 pending exp: timeout" 227 end 200 228 end 201 229 end … … 230 258 list word -split $word 231 259 $base = $word:0 232 stdout $LOGSUBDIR/$base.p0.log 233 stderr $LOGSUBDIR/$base.p0.log 260 stdout $LOGSUBDIR/$base/$EXP_TAG.p0.log 261 stderr $LOGSUBDIR/$base/$EXP_TAG.p0.log 262 exec mkdir -p $LOGSUBDIR/$base 234 263 235 264 # specify choice of remote host:(need to choose based on chips) … … 242 271 # create the command line 243 272 options "$line" 244 echo command phase0_exp.pl --exp_tag $EXP_TAG 273 if ($VERBOSE > 1) 274 echo command phase0_exp.pl --exp_tag $EXP_TAG 275 end 245 276 command phase0_exp.pl --exp_tag $EXP_TAG 246 277 end
Note:
See TracChangeset
for help on using the changeset viewer.
