Changeset 24596 for trunk/ippTasks/warp.pro
- Timestamp:
- Jun 25, 2009, 4:33:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/warp.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/warp.pro
r24595 r24596 17 17 $warpExp_DB = 0 18 18 $warpSkycell_DB = 0 19 #$warpCleanup_DB = 0 19 $warp_revert_overlap_DB = 0 20 $warp_revert_warped_DB = 0 20 21 21 22 ### Check status of warping tasks … … 23 24 book listbook warpInputExp 24 25 book listbook warpPendingSkyCell 25 # book listbook warpPendingCleanup26 26 end 27 27 … … 30 30 book init warpInputExp 31 31 book init warpPendingSkyCell 32 # book init warpPendingCleanup33 32 end 34 33 … … 70 69 end 71 70 end 72 73 # macro warp.cleanup.on74 # task warp.cleanup.load75 # active true76 # end77 # task warp.cleanup.run78 # active true79 # end80 # end81 # macro warp.cleanup.off82 # task warp.cleanup.load83 # active false84 # end85 # task warp.cleanup.run86 # active false87 # end88 # end89 71 90 72 ### Load tasks for calculating the warp overlaps … … 404 386 end 405 387 406 # # select images ready for warp analysis 407 # # new entries are added to warpPendingImfile 408 # # skip already-present entries 409 # task warp.cleanup.load 410 # host local 411 412 # periods -poll $LOADPOLL 413 # periods -exec $LOADEXEC 414 # periods -timeout 30 415 # npending 1 416 # active false 417 418 # stdout NULL 419 # stderr $LOGDIR/warp.cleanup.log 420 421 # task.exec 422 # if ($LABEL:n == 0) break 423 # $run = warptool -pendingcleanuprun 424 # if ($DB:n == 0) 425 # option DEFAULT 426 # else 427 # # save the DB name for the exit tasks 428 # option $DB:$warpCleanup_DB 429 # $run = $run -dbname $DB:$warpCleanup_DB 430 # $warpCleanup_DB ++ 431 # if ($warpCleanup_DB >= $DB:n) set warpCleanup_DB = 0 432 # end 433 # add_poll_args run 434 # add_poll_labels run 435 # command $run 436 # end 437 438 # # success 439 # task.exit 0 440 # # convert 'stdout' to book format 441 # ipptool2book stdout warpPendingCleanup -key warp_id -uniq -setword dbname $options:0 -setword pantaskState INIT 442 # if ($VERBOSE > 2) 443 # book listbook warpPendingCleanup 444 # end 445 446 # # delete existing entries in the appropriate pantaskStates 447 # process_cleanup warpPendingCleanup 448 # end 449 450 # # locked list 451 # task.exit default 452 # showcommand failure 453 # end 454 455 # task.exit crash 456 # showcommand crash 457 # end 458 459 # # operation times out? 460 # task.exit timeout 461 # showcommand timeout 462 # end 463 # end 464 465 # # run the ipp_cleanup.pl script on pending images 466 # task warp.cleanup.run 467 # periods -poll $RUNPOLL 468 # periods -exec $RUNEXEC 469 # periods -timeout 60 470 # active false 471 472 # task.exec 473 # book npages warpPendingCleanup -var N 474 # if ($N == 0) break 475 # if ($NETWORK == 0) break 476 477 # # look for new images in warpPendingCleanup (pantaskState == INIT) 478 # book getpage warpPendingCleanup 0 -var pageName -key pantaskState INIT 479 # if ("$pageName" == "NULL") break 480 481 # book setword warpPendingCleanup $pageName pantaskState RUN 482 # book getword warpPendingCleanup $pageName camera -var CAMERA 483 # book getword warpPendingCleanup $pageName state -var CLEANUP_MODE 484 # book getword warpPendingCleanup $pageName warp_id -var WARP_ID 485 # book getword warpPendingCleanup $pageName dbname -var DBNAME 486 487 # # specify choice of local or remote host based on camera and warp (class_id) 488 # set.host.for.camera $CAMERA FPA 489 490 # stdout $LOGDIR/warp.cleanup.log 491 # stderr $LOGDIR/warp.cleanup.log 492 493 # # XXX is everything listed here needed? 494 # $run = ipp_cleanup.pl --stage warp --stage_id $WARP_ID --camera $CAMERA --mode $CLEANUP_MODE 495 # add_standard_args run 496 497 # # save the pageName for future reference below 498 # options $pageName 499 500 # # create the command line 501 # if ($VERBOSE > 1) 502 # echo command $run 503 # end 504 # command $run 505 # end 506 507 # # default exit status 508 # task.exit default 509 # process_exit warpPendingCleanup $options:0 $JOB_STATUS 510 # end 511 512 # task.exit crash 513 # showcommand crash 514 # book setword warpPendingCleanup $options:0 pantaskState CRASH 515 # end 516 517 # # operation timed out? 518 # task.exit timeout 519 # showcommand timeout 520 # book setword warpPendingCleanup $options:0 pantaskState TIMEOUT 521 # end 522 # end 388 task warp.revert.overlap 389 host local 390 391 periods -poll 5.0 392 periods -exec 60.0 393 periods -timeout 120.0 394 npending 1 395 396 stdout NULL 397 stderr $LOGDIR/revert.log 398 399 task.exec 400 if ($LABEL:n == 0) break 401 $run = warptool -revertoverlap 402 if ($DB:n == 0) 403 option DEFAULT 404 else 405 # save the DB name for the exit tasks 406 option $DB:$warp_revert_overlap_DB 407 $run = $run -dbname $DB:$warp_revert_overlap_DB 408 $warp_revert_overlap_DB ++ 409 if ($warp_revert_overlap_DB >= $DB:n) set warp_revert_overlap_DB = 0 410 end 411 add_poll_labels run 412 command $run 413 end 414 415 # success 416 task.exit 0 417 end 418 419 # locked list 420 task.exit default 421 showcommand failure 422 end 423 424 task.exit crash 425 showcommand crash 426 end 427 428 # operation times out? 429 task.exit timeout 430 showcommand timeout 431 end 432 end 433 434 task warp.revert.warped 435 host local 436 437 periods -poll 5.0 438 periods -exec 60.0 439 periods -timeout 120.0 440 npending 1 441 442 stdout NULL 443 stderr $LOGDIR/revert.log 444 445 task.exec 446 if ($LABEL:n == 0) break 447 $run = warptool -revertwarped 448 if ($DB:n == 0) 449 option DEFAULT 450 else 451 # save the DB name for the exit tasks 452 option $DB:$warp_revert_warped_DB 453 $run = $run -dbname $DB:$warp_revert_warped_DB 454 $warp_revert_warped_DB ++ 455 if ($warp_revert_warped_DB >= $DB:n) set warp_revert_warped_DB = 0 456 end 457 add_poll_labels run 458 command $run 459 end 460 461 # success 462 task.exit 0 463 end 464 465 # locked list 466 task.exit default 467 showcommand failure 468 end 469 470 task.exit crash 471 showcommand crash 472 end 473 474 # operation times out? 475 task.exit timeout 476 showcommand timeout 477 end 478 end
Note:
See TracChangeset
for help on using the changeset viewer.
