Changeset 29361
- Timestamp:
- Oct 8, 2010, 11:59:42 AM (16 years ago)
- Location:
- tags/ipp-20100823/ippTasks
- Files:
-
- 2 edited
- 1 copied
-
Makefile.am (modified) (1 diff)
-
destreak.cleanup.pro (copied) (copied from trunk/ippTasks/destreak.cleanup.pro ) (1 prop)
-
destreak.pro (modified) (7 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
tags/ipp-20100823/ippTasks/Makefile.am
r28632 r29361 18 18 magic.pro \ 19 19 destreak.pro \ 20 destreak.cleanup.pro \ 20 21 diff.pro \ 21 22 stack.pro \ -
tags/ipp-20100823/ippTasks/destreak.cleanup.pro
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/20100427/ippTasks/destreak.cleanup.pro 27784-28042 /branches/czw_branch/20100519/ippTasks/destreak.cleanup.pro 28044-28338 /branches/haf_branches/ipp.20100512/ippTasks/destreak.cleanup.pro 27935-28180 /branches/pap/ippTasks/destreak.cleanup.pro 27706-28005,28177-28485,28498-28535
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
tags/ipp-20100823/ippTasks/destreak.pro
- Property svn:mergeinfo changed
/trunk/ippTasks/destreak.pro merged: 29250,29360
r29209 r29361 10 10 book init magicToDS 11 11 book init magicDSToRevert 12 book init magicDSToCleanup13 12 14 13 ### indexes into Database lists … … 32 31 ### Check status of tasks 33 32 macro destreak.status 34 # since echo and listbook output go to different files these do not come in order35 echo magicToDS36 33 book listbook magicToDS 37 echo magicDSToRevert38 34 book listbook magicDSToRevert 39 echo magicDSToCleanup40 book listbook magicDSToCleanup41 35 end 42 36 … … 45 39 book init magicToDS 46 40 book init magicDSToRevert 47 book init magicDSToCleanup48 41 end 49 42 … … 73 66 end 74 67 75 macro destreak.cleanup.on76 task destreak.cleanup.load77 active true78 end79 task destreak.cleanup.run80 active true81 end82 end83 84 68 ### Turn tasks off 85 69 macro destreak.off … … 106 90 end 107 91 end 108 macro destreak.cleanup.off109 task destreak.cleanup.load110 active false111 end112 task destreak.cleanup.run113 active false114 end115 end116 117 92 118 93 task destreak.load … … 319 294 task destreak.revert.load 320 295 host local 321 322 periods -poll $LOADPOLL 323 periods -exec $LOADEXEC 324 periods -timeout 20 296 periods -poll 60.0 297 periods -exec 900. 298 periods -timeout 120 325 299 npending 1 326 300 active false … … 520 494 end 521 495 522 task destreak.cleanup.load523 host local524 525 periods -poll $LOADPOLL526 periods -exec $LOADEXEC527 periods -timeout 20528 npending 1529 active false530 531 stdout NULL532 stderr $LOGSUBDIR/destreak.cleanup.load.log533 534 task.exec535 $run = magicdstool -tocleanup536 if ($DB:n == 0)537 option DEFAULT538 else539 540 # save the DB name for the exit tasks541 option $DB:$magicDSToCleanup_DB542 $run = $run -dbname $DB:$magicDSToCleanup_DB543 544 # only bump database number after we have gone through all of the stages545 $magicDSToCleanup_DB ++546 if ($magicDSToCleanup_DB >= $DB:n) set magicDSToCleanup_DB = 0547 end548 add_poll_args run549 add_poll_labels run550 command $run551 end552 553 # success554 task.exit 0555 # convert 'stdout' to book format556 ipptool2book stdout magicDSToCleanup -key magic_ds_id -uniq -setword dbname $options:0 -setword pantaskState INIT557 if ($VERBOSE > 2)558 book listbook magicDSToCleanup559 end560 561 # delete existing entries in the appropriate pantaskStates562 process_cleanup magicDSToCleanup563 end564 565 # locked list566 task.exit default567 showcommand failure568 end569 570 task.exit crash571 showcommand crash572 end573 574 # operation times out?575 task.exit timeout576 showcommand timeout577 end578 end579 580 task destreak.cleanup.run581 periods -poll $RUNPOLL582 periods -exec $RUNEXEC583 periods -timeout 60584 active false585 586 task.exec587 stdout $LOGSUBDIR/destreak.cleanup.run.log588 stderr $LOGSUBDIR/destreak.cleanup.run.log589 590 # if we are unable to run the 'exec', use a long retry time591 periods -exec $RUNEXEC592 593 book npages magicDSToCleanup -var N594 if ($N == 0) break595 if ($NETWORK == 0) break596 597 # look for new images (pantaskState == INIT)598 book getpage magicDSToCleanup 0 -var pageName -key pantaskState INIT599 if ("$pageName" == "NULL") break600 601 book setword magicDSToCleanup $pageName pantaskState RUN602 book getword magicDSToCleanup $pageName magic_ds_id -var MAGIC_DS_ID603 book getword magicDSToCleanup $pageName camera -var CAMERA604 book getword magicDSToCleanup $pageName stage -var STAGE605 book getword magicDSToCleanup $pageName outroot -var OUTROOT606 book getword magicDSToCleanup $pageName dbname -var DBNAME607 608 sprintf logfile "%s/mds.%s.cleanup.log" $OUTROOT $MAGIC_DS_ID609 610 host anyhost611 612 $run = magic_destreak_cleanup.pl --magic_ds_id $MAGIC_DS_ID --stage $STAGE --camera $CAMERA --logfile $logfile613 614 add_standard_args run615 616 # save the pageName for future reference below617 options $pageName618 619 # create the command line620 if ($VERBOSE > 1)621 echo command $run622 end623 # if we are ready to run, drop the retry timeout low so we fill up the queue624 periods -exec 0.05625 command $run626 end627 628 # default exit status629 task.exit 0630 process_exit magicDSToCleanup $options:0 $JOB_STATUS631 end632 633 # locked list634 task.exit default635 showcommand failure636 process_exit magicDSToCleanup $options:0 $JOB_STATUS637 end638 639 task.exit crash640 showcommand crash641 book setword magicDSToCleanup $options:0 pantaskState CRASH642 end643 644 # operation timed out?645 task.exit timeout646 showcommand timeout647 book setword magicDSToCleanup $options:0 pantaskState TIMEOUT648 end649 end650 - Property svn:mergeinfo changed
Note:
See TracChangeset
for help on using the changeset viewer.
