Changeset 34786 for branches/czw_branch/20120906/ippTasks
- Timestamp:
- Dec 10, 2012, 4:35:46 PM (14 years ago)
- Location:
- branches/czw_branch/20120906
- Files:
-
- 5 edited
-
. (modified) (1 prop)
-
ippTasks/science.cleanup.pro (modified) (8 diffs)
-
ippTasks/skycal.pro (modified) (4 diffs)
-
ippTasks/staticsky.pro (modified) (1 diff)
-
ippTasks/summit.copy.pro (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906
- Property svn:mergeinfo changed
-
branches/czw_branch/20120906/ippTasks/science.cleanup.pro
r34203 r34786 13 13 14 14 check.globals 15 16 # if set tell cleanup script to check for files from all components regardless of the data_state 17 $CHECK_ALL_COMPONENTS = 0 18 macro set.check.all.components 19 $CHECK_ALL_COMPONENTS = 1 20 end 21 macro clear.check.all.components 22 $CHECK_ALL_COMPONENTS = 0 23 end 24 macro get.check.all.components 25 echo CHECK_ALL_COMPONENTS = $CHECK_ALL_COMPONENTS 26 end 27 15 28 16 29 ## chip.cleanup.pro : -*- sh -*- … … 130 143 book getword chipPendingCleanup $pageName state -var CLEANUP_MODE 131 144 book getword chipPendingCleanup $pageName chip_id -var CHIP_ID 145 book getword chipPendingCleanup $pageName exp_tag -var EXP_TAG 146 book getword chipPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE 132 147 book getword chipPendingCleanup $pageName dbname -var DBNAME 133 148 134 # specify choice of local or remote host based on camera and chip ( class_id)149 # specify choice of local or remote host based on camera and chip (in this case FPA) 135 150 set.host.for.camera $CAMERA FPA 151 152 set.workdir.by.camera $CAMERA FPA $WORKDIR_TEMPLATE $default_host WORKDIR 153 154 sprintf LOGFILE "%s/%s/%s.ch.%s.cleanup.log" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID 136 155 137 156 stdout $LOGDIR/chip.cleanup.log 138 157 stderr $LOGDIR/chip.cleanup.log 139 158 140 # XXX is everything listed here needed? 141 $run = ipp_cleanup.pl --stage chip --stage_id $CHIP_ID --camera $CAMERA --mode $CLEANUP_MODE 159 $run = ipp_cleanup.pl --stage chip --stage_id $CHIP_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $LOGFILE 160 if ($CHECK_ALL_COMPONENTS) 161 $run = $run --check-all 162 end 142 163 add_standard_args run 143 164 … … 282 303 book getword camPendingCleanup $pageName state -var CLEANUP_MODE 283 304 book getword camPendingCleanup $pageName cam_id -var CAM_ID 305 book getword camPendingCleanup $pageName exp_tag -var EXP_TAG 306 book getword camPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE 284 307 book getword camPendingCleanup $pageName dbname -var DBNAME 285 308 … … 287 310 set.host.for.camera $CAMERA FPA 288 311 312 # set the WORKDIR variable 313 set.workdir.by.camera $CAMERA FPA $WORKDIR_TEMPLATE $default_host WORKDIR 314 315 ## generate LOGFILE specific to this exposure (& cam_id) 316 sprintf LOGFILE "%s/%s/%s.cm.%s.cleanup.log" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID 317 289 318 stdout $LOGDIR/camera.cleanup.log 290 319 stderr $LOGDIR/camera.cleanup.log 291 320 292 # XXX is everything listed here needed? 293 $run = ipp_cleanup.pl --stage camera --stage_id $CAM_ID --camera $CAMERA --mode $CLEANUP_MODE 321 $run = ipp_cleanup.pl --stage camera --stage_id $CAM_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $LOGFILE 294 322 add_standard_args run 295 323 … … 591 619 book getword warpPendingCleanup $pageName state -var CLEANUP_MODE 592 620 book getword warpPendingCleanup $pageName warp_id -var WARP_ID 621 book getword warpPendingCleanup $pageName exp_tag -var EXP_TAG 622 book getword warpPendingCleanup $pageName workdir -var WORKDIR_TEMPLATE 593 623 book getword warpPendingCleanup $pageName dbname -var DBNAME 594 624 595 625 # specify choice of local or remote host based on camera and warp (class_id) 596 626 set.host.for.camera $CAMERA FPA 627 set.workdir.by.camera $CAMERA $WARP_ID $WORKDIR_TEMPLATE $default_host WORKDIR 628 629 sprintf LOGFILE "%s/%s/%s.wrp.%s.cleanup.log" $WORKDIR $EXP_TAG $EXP_TAG $WARP_ID 597 630 598 631 stdout $LOGDIR/warp.cleanup.log 599 632 stderr $LOGDIR/warp.cleanup.log 600 633 601 # XXX is everything listed here needed? 602 $run = ipp_cleanup.pl --stage warp --stage_id $WARP_ID --camera $CAMERA --mode $CLEANUP_MODE 634 $run = ipp_cleanup.pl --stage warp --stage_id $WARP_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $LOGFILE 635 if ($CHECK_ALL_COMPONENTS) 636 $run = $run --check-all 637 end 603 638 add_standard_args run 604 639 … … 748 783 book getword diffCleanup $pageName state -var CLEANUP_MODE 749 784 book getword diffCleanup $pageName diff_id -var DIFF_ID 785 book getword diffCleanup $pageName tess_id -var TESS_ID 786 book getword diffCleanup $pageName workdir -var WORKDIR_TEMPLATE 750 787 book getword diffCleanup $pageName dbname -var DBNAME 751 788 752 789 # specify choice of local or remote host based on camera and diff (class_id) 753 790 set.host.for.camera $CAMERA FPA 791 set.workdir.by.camera $CAMERA $DIFF_ID $WORKDIR_TEMPLATE $default_host WORKDIR 792 sprintf LOGFILE "%s/%s/%s.dif.%s.cleanup.log" $WORKDIR $TESS_ID $TESS_ID $DIFF_ID 793 754 794 755 795 stdout $LOGDIR/diff.cleanup.log 756 796 stderr $LOGDIR/diff.cleanup.log 757 797 758 # XXX is everything listed here needed? 759 $run = ipp_cleanup.pl --stage diff --stage_id $DIFF_ID --camera $CAMERA --mode $CLEANUP_MODE 798 $run = ipp_cleanup.pl --stage diff --stage_id $DIFF_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $LOGFILE 799 if ($CHECK_ALL_COMPONENTS) 800 $run = $run --check-all 801 end 760 802 add_standard_args run 761 803 … … 899 941 book getword stackCleanup $pageName state -var CLEANUP_MODE 900 942 book getword stackCleanup $pageName stack_id -var STACK_ID 943 book getword stackCleanup $pageName path_base -var PATH_BASE 901 944 book getword stackCleanup $pageName dbname -var DBNAME 902 945 … … 907 950 stderr $LOGDIR/stack.cleanup.log 908 951 909 # XXX is everything listed here needed?910 $run = ipp_cleanup.pl --stage stack --stage_id $STACK_ID --camera $CAMERA --mode $CLEANUP_MODE 952 sprintf LOGFILE "%s.cleanup.log" PATH_BASE 953 $run = ipp_cleanup.pl --stage stack --stage_id $STACK_ID --camera $CAMERA --mode $CLEANUP_MODE --logfile $LOGFILE 911 954 add_standard_args run 912 955 -
branches/czw_branch/20120906/ippTasks/skycal.pro
r32983 r34786 8 8 # test for required global variables 9 9 check.globals 10 11 # skcal.pro should have a more restricted polling limit (to avoid stress with getstar) 12 if ($?POLL_LIMIT_SKYCAL == 0) set POLL_LIMIT_SKYCAL = 25 13 14 macro set.skycal.poll 15 if ($0 != 2) 16 echo "USAGE:set.skycal.poll (value)" 17 break 18 end 19 20 $POLL_LIMIT_SKYCAL = $1 21 end 22 23 macro get.skycal.poll 24 echo "skycal poll limit: $POLL_LIMIT_SKYCAL" 25 end 10 26 11 27 ### Initialise the books containing the tasks to do … … 79 95 # save the DB name for the exit tasks 80 96 option $DB:$skycal_DB 81 $run = $run -dbname $DB:$skycal_DB -limit 4097 $run = $run -dbname $DB:$skycal_DB 82 98 $skycal_DB ++ 83 99 if ($skycal_DB >= $DB:n) set skycal_DB = 0 … … 85 101 add_poll_args run 86 102 add_poll_labels run 103 $run = $run -limit $POLL_LIMIT_SKYCAL 87 104 command $run 88 105 end … … 197 214 host local 198 215 199 periods -poll 60.0200 periods -exec 1 800.0216 periods -poll 10.0 217 periods -exec 1200.0 201 218 periods -timeout 120.0 202 219 npending 1 203 active false220 active true 204 221 205 222 stdout NULL -
branches/czw_branch/20120906/ippTasks/staticsky.pro
r33957 r34786 70 70 71 71 periods -poll $LOADPOLL 72 periods -exec $LOADEXEC73 periods -timeout 3072 periods -exec 30 73 periods -timeout 60 74 74 npending 1 75 75 -
branches/czw_branch/20120906/ippTasks/summit.copy.pro
r33168 r34786 223 223 periods -exec 10 224 224 periods -poll 1 225 periods -timeout 20225 periods -timeout 60 226 226 npending 1 227 227
Note:
See TracChangeset
for help on using the changeset viewer.
