Changeset 25462
- Timestamp:
- Sep 21, 2009, 1:24:32 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/dist.pro (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/dist.pro
r25429 r25462 18 18 ### list of stages 19 19 #list of stages 20 $ STAGE:n = 021 list STAGE -add "raw"22 list STAGE -add "chip"23 list STAGE -add "camera"24 list STAGE -add "fake"25 list STAGE -add "warp"26 list STAGE -add "diff"27 list STAGE -add "stack"20 $DIST_STAGE:n = 0 21 list DIST_STAGE -add "raw" 22 list DIST_STAGE -add "chip" 23 list DIST_STAGE -add "camera" 24 list DIST_STAGE -add "fake" 25 list DIST_STAGE -add "warp" 26 list DIST_STAGE -add "diff" 27 list DIST_STAGE -add "stack" 28 28 29 29 $currentStage = 0 … … 55 55 active true 56 56 end 57 task dist.queueruns 58 # We aren't ready to run this task yet. It will queue much too much 59 # active true 60 active false 61 end 62 end 57 end 58 63 59 macro dist.off 64 60 task dist.process.load … … 72 68 end 73 69 task dist.advance.run 74 active false75 end76 task dist.queueruns77 70 active false 78 71 end … … 87 80 npending 1 88 81 89 stdout NULL90 stderr $LOGDIR/dist.process.log91 82 92 83 task.exec 93 $run = disttool -pendingcomponent -stage $STAGE:$currentStage 84 # stdout NULL 85 # stderr $LOGSUBDIR/dist.process.load.log 86 87 $run = disttool -pendingcomponent -stage $DIST_STAGE:$currentStage 94 88 $currentStage ++ 95 if ($currentStage >= $STAGE:n) set currentStage = 0 89 if ($currentStage >= $DIST_STAGE:n) set currentStage = 0 90 96 91 if ($DB:n == 0) 97 92 option DEFAULT … … 154 149 if ("$pageName" == "NULL") break 155 150 151 # echo running $pageName 152 156 153 book setword distToProcess $pageName pantaskState RUN 157 154 book getword distToProcess $pageName dist_id -var DIST_ID 158 155 book getword distToProcess $pageName camera -var CAMERA 159 book getword distToProcess $pageName stage -var STAGE160 book getword distToProcess $pageName stage_id -var STAGE_ID156 book getword distToProcess $pageName stage -var DIST_STAGE 157 book getword distToProcess $pageName stage_id -var DIST_STAGE_ID 161 158 book getword distToProcess $pageName clean -var CLEAN 162 159 book getword distToProcess $pageName component -var COMPONENT … … 179 176 $EXTRA_ARGS = $EXTRA_ARGS --magicked 180 177 end 181 # no_magic is output as integer due to the union in the sql182 if ( $NO_MAGIC)178 # is this right for stack and fake? 179 if ("$NO_MAGIC" == "T") 183 180 $EXTRA_ARGS = $EXTRA_ARGS --no_magic 184 181 end … … 190 187 # set.workdir.by.camera $CAMERA $MAGIC_ID $WORKDIR_TEMPLATE $default_host WORKDIR 191 188 # host anyhost 192 193 189 194 190 substr $COMPONENT 0 3 COMP_HEAD … … 200 196 end 201 197 202 203 198 sprintf logfile "%s/dist.%s.%s.log" $OUTDIR $DIST_ID $COMPONENT 204 stdout $logfile205 stderr $logfile206 207 $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 $logfile199 # stdout $logfile 200 # stderr $logfile 201 202 $run = dist_component.pl --dist_id $DIST_ID --camera $CAMERA --stage $DIST_STAGE --stage_id $DIST_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 208 203 209 204 add_standard_args run … … 231 226 end 232 227 233 234 228 task dist.advance.load 235 229 host local … … 240 234 npending 1 241 235 242 stdout NULL243 stderr $LOGDIR/dist.advance.load.log244 245 236 task.exec 237 # stderr $LOGSUBDIR/dist.advance.load.log 238 246 239 $run = disttool -toadvance 247 240 if ($DB:n == 0) … … 281 274 end 282 275 end 276 283 277 284 278 task dist.advance.run … … 311 305 312 306 sprintf logfile "%s/dist.advance.%s.log" $OUTDIR $DIST_ID 313 stdout $logfile314 stderr $logfile307 # stdout $logfile 308 # stderr $logfile 315 309 316 310 $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --outdir $OUTDIR $EXTRA_ARGS --logfile $logfile … … 338 332 end 339 333 end 340 341 task dist.queueruns342 # host local343 344 periods -poll $RUNPOLL345 periods -exec 30346 periods -timeout 45347 npending 1348 349 active false350 351 # stdout $LOGDIR/dist.queuruns352 # stderr $LOGDIR/dist.queueruns353 354 task.exec355 $MYARGS = ""356 # assume that we need magic unless we are running simtest357 if ($?SIMTEST_CAMERA != 0)358 $MYARGS = --no_magic359 end360 361 $run = dist_queue_runs.pl $MYARGS --stage_limit 16 --logfile $LOGDIR/dist.queueruns362 363 if ($DB:n == 0)364 $DBNAME = DEFAULT365 else366 # save the DB name for add_standard_args367 $DBNAME = $DB:$distQueue_DB368 $distQueue_DB ++369 if ($distQueue_DB >= $DB:n) set distQueue_DB = 0370 end371 372 host anyhost373 374 add_standard_args run375 376 # create the command line377 if ($VERBOSE > 1)378 echo command $run379 end380 command $run381 end382 383 task.exit $EXIT_SUCCESS384 # nothing to do385 end386 387 # default exit status388 task.exit default389 showcommand failure390 end391 392 # operation timed out?393 task.exit timeout394 showcommand timeout395 end396 397 # operation timed out?398 task.exit crash399 showcommand crash400 end401 end
Note:
See TracChangeset
for help on using the changeset viewer.
