Changeset 29689 for trunk/ippTasks/stack.pro
- Timestamp:
- Nov 6, 2010, 9:02:56 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/stack.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/stack.pro
r28649 r29689 8 8 check.globals 9 9 10 if ($?POLL_LIMIT_STACK == 0) set POLL_LIMIT_STACK = 10 11 12 macro set.stack.poll 13 if ($0 != 2) 14 echo "USAGE:set.stack.poll (value)" 15 break 16 end 17 18 $POLL_LIMIT_STACK = $1 19 end 20 10 21 ### Initialise the books containing the tasks to do 11 22 book init stackSumSkyfile 12 23 book init stackPendingSummary 13 #book init stackCleanup14 24 15 25 ### Database lists 16 26 $stackSkycell_DB = 0 17 27 $stack_revert_DB = 0 18 #$stackCleanup_DB = 019 28 $stackSummary_DB = 0 20 29 … … 22 31 macro stack.status 23 32 book listbook stackSumSkyfile 24 # book listbook stackCleanup25 33 end 26 34 … … 29 37 book init stackSumSkyfile 30 38 book init stackPendingSummary 31 # book init stackCleanup32 39 end 33 40 … … 81 88 end 82 89 end 83 84 85 86 87 88 # macro stack.cleanup.on89 # task stack.cleanup.load90 # active true91 # end92 # task stack.cleanup.run93 # active true94 # end95 # end96 97 # macro stack.cleanup.off98 # task stack.cleanup.load99 # active false100 # end101 # task stack.cleanup.run102 # active false103 # end104 # end105 90 106 91 … … 132 117 add_poll_args run 133 118 add_poll_labels run 134 # reduce the limit (the last one takes precedence)135 $run = $run -limit 40119 # change the limit (the last one on the command line takes precedence) 120 $run = $run -limit $POLL_LIMIT_STACK 136 121 command $run 137 122 end … … 246 231 end 247 232 end 248 249 250 # # select images ready for stack analysis251 # # new entries are added to stackCleanup252 # # skip already-present entries253 # task stack.cleanup.load254 # host local255 256 # periods -poll $LOADPOLL257 # periods -exec $LOADEXEC258 # periods -timeout 30259 # npending 1260 # active false261 262 # stdout NULL263 # stderr $LOGDIR/stack.cleanup.log264 265 # task.exec266 # if ($LABEL:n == 0) break267 # $run = stacktool -pendingcleanuprun268 # if ($DB:n == 0)269 # option DEFAULT270 # else271 # # save the DB name for the exit tasks272 # option $DB:$stackCleanup_DB273 # $run = $run -dbname $DB:$stackCleanup_DB274 # $stackCleanup_DB ++275 # if ($stackCleanup_DB >= $DB:n) set stackCleanup_DB = 0276 # end277 # add_poll_args run278 # add_poll_labels run279 # command $run280 # end281 282 # # success283 # task.exit 0284 # # convert 'stdout' to book format285 # ipptool2book stdout stackCleanup -key stack_id -uniq -setword dbname $options:0 -setword pantaskState INIT286 # if ($VERBOSE > 2)287 # book listbook stackCleanup288 # end289 290 # # delete existing entries in the appropriate pantaskStates291 # process_cleanup stackCleanup292 # end293 294 # # locked list295 # task.exit default296 # showcommand failure297 # end298 299 # task.exit crash300 # showcommand crash301 # end302 303 # # operation times out?304 # task.exit timeout305 # showcommand timeout306 # end307 # end308 309 # # run the ipp_cleanup.pl script on pending images310 # task stack.cleanup.run311 # periods -poll $RUNPOLL312 # periods -exec $RUNEXEC313 # periods -timeout 60314 # active false315 316 # task.exec317 # book npages stackCleanup -var N318 # if ($N == 0) break319 # if ($NETWORK == 0) break320 321 # # look for new images in stackCleanup (pantaskState == INIT)322 # book getpage stackCleanup 0 -var pageName -key pantaskState INIT323 # if ("$pageName" == "NULL") break324 325 # book setword stackCleanup $pageName pantaskState RUN326 # book getword stackCleanup $pageName camera -var CAMERA327 # book getword stackCleanup $pageName state -var CLEANUP_MODE328 # book getword stackCleanup $pageName stack_id -var STACK_ID329 # book getword stackCleanup $pageName dbname -var DBNAME330 331 # # specify choice of local or remote host based on camera and stack (class_id)332 # set.host.for.camera $CAMERA FPA333 334 # stdout $LOGDIR/stack.cleanup.log335 # stderr $LOGDIR/stack.cleanup.log336 337 # # XXX is everything listed here needed?338 # $run = ipp_cleanup.pl --stage stack --stage_id $STACK_ID --camera $CAMERA --mode $CLEANUP_MODE339 # add_standard_args run340 341 # # save the pageName for future reference below342 # options $pageName343 344 # # create the command line345 # if ($VERBOSE > 1)346 # echo command $run347 # end348 # command $run349 # end350 351 # # default exit status352 # task.exit default353 # process_exit stackCleanup $options:0 $JOB_STATUS354 # end355 356 # task.exit crash357 # showcommand crash358 # book setword stackCleanup $options:0 pantaskState CRASH359 # end360 361 # # operation timed out?362 # task.exit timeout363 # showcommand timeout364 # book setword stackCleanup $options:0 pantaskState TIMEOUT365 # end366 # end367 368 369 233 370 234
Note:
See TracChangeset
for help on using the changeset viewer.
