Changeset 24595 for trunk/ippTasks/warp.pro
- Timestamp:
- Jun 25, 2009, 4:22:33 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/warp.pro (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/warp.pro
r24506 r24595 17 17 $warpExp_DB = 0 18 18 $warpSkycell_DB = 0 19 $warpCleanup_DB = 019 #$warpCleanup_DB = 0 20 20 21 21 ### Check status of warping tasks … … 23 23 book listbook warpInputExp 24 24 book listbook warpPendingSkyCell 25 book listbook warpPendingCleanup25 # book listbook warpPendingCleanup 26 26 end 27 27 … … 30 30 book init warpInputExp 31 31 book init warpPendingSkyCell 32 book init warpPendingCleanup32 # book init warpPendingCleanup 33 33 end 34 34 … … 71 71 end 72 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 end73 # macro warp.cleanup.on 74 # task warp.cleanup.load 75 # active true 76 # end 77 # task warp.cleanup.run 78 # active true 79 # end 80 # end 81 # macro warp.cleanup.off 82 # task warp.cleanup.load 83 # active false 84 # end 85 # task warp.cleanup.run 86 # active false 87 # end 88 # end 89 89 90 90 ### Load tasks for calculating the warp overlaps … … 404 404 end 405 405 406 # select images ready for warp analysis407 # new entries are added to warpPendingImfile408 # skip already-present entries409 task warp.cleanup.load410 host local411 412 periods -poll $LOADPOLL413 periods -exec $LOADEXEC414 periods -timeout 30415 npending 1416 active false417 418 stdout NULL419 stderr $LOGDIR/warp.cleanup.log420 421 task.exec422 if ($LABEL:n == 0) break423 $run = warptool -pendingcleanuprun424 if ($DB:n == 0)425 option DEFAULT426 else427 # save the DB name for the exit tasks428 option $DB:$warpCleanup_DB429 $run = $run -dbname $DB:$warpCleanup_DB430 $warpCleanup_DB ++431 if ($warpCleanup_DB >= $DB:n) set warpCleanup_DB = 0432 end433 add_poll_args run434 add_poll_labels run435 command $run436 end437 438 # success439 task.exit 0440 # convert 'stdout' to book format441 ipptool2book stdout warpPendingCleanup -key warp_id -uniq -setword dbname $options:0 -setword pantaskState INIT442 if ($VERBOSE > 2)443 book listbook warpPendingCleanup444 end445 446 # delete existing entries in the appropriate pantaskStates447 process_cleanup warpPendingCleanup448 end449 450 # locked list451 task.exit default452 showcommand failure453 end454 455 task.exit crash456 showcommand crash457 end458 459 # operation times out?460 task.exit timeout461 showcommand timeout462 end463 end464 465 # run the ipp_cleanup.pl script on pending images466 task warp.cleanup.run467 periods -poll $RUNPOLL468 periods -exec $RUNEXEC469 periods -timeout 60470 active false471 472 task.exec473 book npages warpPendingCleanup -var N474 if ($N == 0) break475 if ($NETWORK == 0) break406 # # 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 476 477 # look for new images in warpPendingCleanup (pantaskState == INIT)478 book getpage warpPendingCleanup 0 -var pageName -key pantaskState INIT479 if ("$pageName" == "NULL") break480 481 book setword warpPendingCleanup $pageName pantaskState RUN482 book getword warpPendingCleanup $pageName camera -var CAMERA483 book getword warpPendingCleanup $pageName state -var CLEANUP_MODE484 book getword warpPendingCleanup $pageName warp_id -var WARP_ID485 book getword warpPendingCleanup $pageName dbname -var DBNAME486 487 # specify choice of local or remote host based on camera and warp (class_id)488 set.host.for.camera $CAMERA FPA489 490 stdout $LOGDIR/warp.cleanup.log491 stderr $LOGDIR/warp.cleanup.log492 493 # XXX is everything listed here needed?494 $run = ipp_cleanup.pl --stage warp --stage_id $WARP_ID --camera $CAMERA --mode $CLEANUP_MODE495 add_standard_args run496 497 # save the pageName for future reference below498 options $pageName499 500 # create the command line501 if ($VERBOSE > 1)502 echo command $run503 end504 command $run505 end506 507 # default exit status508 task.exit default509 process_exit warpPendingCleanup $options:0 $JOB_STATUS510 end511 512 task.exit crash513 showcommand crash514 book setword warpPendingCleanup $options:0 pantaskState CRASH515 end516 517 # operation timed out?518 task.exit timeout519 showcommand timeout520 book setword warpPendingCleanup $options:0 pantaskState TIMEOUT521 end522 end477 # # 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
Note:
See TracChangeset
for help on using the changeset viewer.
