Changeset 28017 for branches/czw_branch/20100427/ippTasks
- Timestamp:
- May 18, 2010, 5:06:01 PM (16 years ago)
- Location:
- branches/czw_branch/20100427
- Files:
-
- 10 edited
- 1 copied
-
. (modified) (1 prop)
-
ippTasks/camera.pro (modified) (2 diffs)
-
ippTasks/chip.pro (modified) (2 diffs)
-
ippTasks/destreak.pro (modified) (5 diffs)
-
ippTasks/diff.pro (modified) (2 diffs)
-
ippTasks/nightly_stacks.pro (modified) (1 diff)
-
ippTasks/pstamp.pro (modified) (20 diffs)
-
ippTasks/simtest.simmosaic.config (copied) (copied from trunk/ippTasks/simtest.simmosaic.config )
-
ippTasks/stack.pro (modified) (3 diffs)
-
ippTasks/summit.copy.pro (modified) (10 diffs)
-
ippTasks/warp.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100427
- Property svn:mergeinfo changed
-
branches/czw_branch/20100427/ippTasks/camera.pro
r27472 r28017 154 154 book getword camPendingExp $pageName cam_id -var CAM_ID 155 155 book getword camPendingExp $pageName workdir -var WORKDIR_TEMPLATE 156 book getword camPendingExp $pageName path_base -var PATH_BASE 156 157 book getword camPendingExp $pageName dvodb -var DVODB 157 158 book getword camPendingExp $pageName dbname -var DBNAME … … 173 174 # neb:///ipp004-vol0/gpc1/20080130 174 175 175 ## generate outroot specific to this exposure (& chip) 176 sprintf outroot "%s/%s/%s.cm.%s" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID 176 if ("$PATH_BASE" == "NULL") 177 ## generate outroot specific to this exposure (& chip) 178 sprintf outroot "%s/%s/%s.cm.%s" $WORKDIR $EXP_TAG $EXP_TAG $CAM_ID 179 else 180 $outroot = $PATH_BASE 181 end 177 182 178 183 stdout $LOGDIR/camera.exp.log -
branches/czw_branch/20100427/ippTasks/chip.pro
r27472 r28017 153 153 book getword chipPendingImfile $pageName reduction -var REDUCTION 154 154 book getword chipPendingImfile $pageName state -var RUN_STATE 155 book getword chipPendingImfile $pageName path_base -var PATH_BASE 155 156 156 157 if ($RAW_MAGICKED > 0) … … 174 175 # neb:///ipp004-vol0/gpc1/20080130 175 176 176 ## generate outroot specific to this exposure (& chip) 177 sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID 177 if ("$PATH_BASE" == "NULL") 178 ## generate outroot specific to this exposure (& chip) 179 sprintf outroot "%s/%s/%s.ch.%s" $WORKDIR $EXP_TAG $EXP_TAG $CHIP_ID 180 else 181 $outroot = $PATH_BASE 182 end 178 183 179 184 stdout $LOGDIR/chip.imfile.log -
branches/czw_branch/20100427/ippTasks/destreak.pro
r27716 r28017 37 37 echo magicDSToRevert 38 38 book listbook magicDSToRevert 39 echo magicDSToCleanup 40 book listbook magicDSToCleanup 39 41 end 40 42 … … 212 214 book getword magicToDS $pageName recoveryroot -var RECROOT 213 215 book getword magicToDS $pageName re_place -var REPLACE 216 book getword magicToDS $pageName magicked -var MAGICKED 214 217 book getword magicToDS $pageName dbname -var DBNAME 215 218 … … 226 229 # TODO: do not add recoveryroot or replace if they are null or zero 227 230 228 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE 231 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --exp_id $EXP_ID --streaks $STREAKS --inv_streaks $INV_STREAKS --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --uri $URI --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE --magicked $MAGICKED 229 232 230 233 add_standard_args run … … 412 415 book getword magicDSToRevert $pageName re_place -var REPLACE 413 416 book getword magicDSToRevert $pageName bothways -var BOTHWAYS 417 book getword magicDSToRevert $pageName magicked -var MAGICKED 414 418 book getword magicDSToRevert $pageName dbname -var DBNAME 415 419 … … 424 428 end 425 429 426 $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS 430 $run = magic_destreak_revert.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA --stage $STAGE --stage_id $STAGE_ID --component $COMPONENT --path_base $PATH_BASE --cam_path_base $CAM_PATH_BASE --cam_reduction $CAM_REDUCTION --outroot $OUTROOT --logfile $logfile --replace $REPLACE --bothways $BOTHWAYS --magicked $MAGICKED 427 431 428 432 add_standard_args run -
branches/czw_branch/20100427/ippTasks/diff.pro
r27472 r28017 184 184 book getword diffSkyfile $pageName reduction -var REDUCTION 185 185 book getword diffSkyfile $pageName diff_mode -var DIFF_MODE 186 book getword diffSkyfile $pageName path_base -var PATH_BASE 186 187 187 188 # set the host and workdir based on the skycell hash … … 207 208 208 209 basename $TESS_DIR -var TESS_ID 209 sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID 210 211 if ("$PATH_BASE" == "NULL") 212 sprintf outroot "%s/%s/%s/%s.%s.%sdif.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $DIFF_TAG $DIFF_ID 213 else 214 $outroot = $PATH_BASE 215 end 210 216 211 217 stdout $LOGDIR/diff.skycell.log -
branches/czw_branch/20100427/ippTasks/nightly_stacks.pro
r27711 r28017 164 164 165 165 task.exec 166 stdout $LOGDIR/ns.initday.log 167 stderr $LOGDIR/ns.initday.log 166 168 $today = `date +%Y-%m-%d` 167 169 book newpage nsData $today 168 170 book setword nsData $today nsState NEW 169 171 170 command echo $today171 #command automate_stacks.pl --clean_old --date $today172 # command echo $today 173 command automate_stacks.pl --clean_old --date $today 172 174 end 173 175 -
branches/czw_branch/20100427/ippTasks/pstamp.pro
r27751 r28017 14 14 $pstampRev_DB = 0 15 15 $pstampDep_DB = 0 16 $pstampCleanup_DB = 0 16 17 17 18 # set PS_DBSERVER if postage stamp database host is not the same as the value for DBSERVER in site.config … … 30 31 book init pstampFinish 31 32 book init pstampDependent 33 book init pstampCleanup 32 34 end 33 35 … … 58 60 active true 59 61 end 60 task pstamp.job.revert61 active true62 end63 62 task pstamp.dependent.load 64 63 active true … … 94 93 end 95 94 task pstamp.dependent.load 96 active true 95 active false 96 end 97 task pstamp.dependent.run 98 active false 97 99 end 98 100 end … … 105 107 macro pstamp.revert.off 106 108 task pstamp.job.revert 109 active false 110 end 111 end 112 macro pstamp.cleanup.on 113 task pstamp.cleanup.load 114 active true 115 end 116 task pstamp.cleanup.run 117 active true 118 end 119 end 120 macro pstamp.cleanup.off 121 task pstamp.cleanup.run 122 active false 123 end 124 task pstamp.cleanup.run 107 125 active false 108 126 end … … 157 175 158 176 task.exec 159 stdout $LOGSUBDIR/pstamp.request.load.log177 stdout NULL 160 178 stderr $LOGSUBDIR/pstamp.request.load.log 161 179 $run = pstamptool -pendingreq … … 202 220 203 221 task.exec 204 stdout $LOGSUBDIR/pstamp.request.run.log222 stdout NULL 205 223 stderr $LOGSUBDIR/pstamp.request.run.log 206 224 book npages pstampRequest -var N … … 215 233 book getword pstampRequest $pageName uri -var URI 216 234 book getword pstampRequest $pageName ds_outProduct -var PRODUCT 235 book getword pstampRequest $pageName outdir -var OUTDIR 217 236 book getword pstampRequest $pageName label -var LABEL 218 237 219 238 host anyhost 220 239 221 $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT -- label $LABEL --redirect-output240 $run = pstamp_parser_run.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --outdir $OUTDIR --label $LABEL --redirect-output 222 241 223 242 add_standard_args run … … 260 279 261 280 task.exec 262 stdout $LOGSUBDIR/pstamp.finish.load.log281 stdout NULL 263 282 stderr $LOGSUBDIR/pstamp.finish.load.log 264 283 $run = pstamptool -completedreq … … 305 324 306 325 task.exec 307 stdout $LOGSUBDIR/request.finish.run.log326 stdout NULL 308 327 stderr $LOGSUBDIR/request.finish.run.log 309 328 book npages pstampFinish -var N … … 320 339 book getword pstampFinish $pageName name -var REQ_NAME 321 340 book getword pstampFinish $pageName outProduct -var PRODUCT 322 323 $run = request_finish.pl --req_id $REQ_ID --req_type $REQ_TYPE --req_file $URI --req_name $REQ_NAME --product $PRODUCT --redirect-output 341 book getword pstampFinish $pageName outdir -var OUTDIR 342 343 $run = request_finish.pl --req_id $REQ_ID --req_type $REQ_TYPE --req_file $URI --req_name $REQ_NAME --product $PRODUCT --outdir $OUTDIR --redirect-output 324 344 325 345 add_standard_args run … … 362 382 363 383 task.exec 364 stdout $LOGSUBDIR/pstamp.job.load.log384 stdout NULL 365 385 stderr $LOGSUBDIR/pstamp.job.load.log 366 386 $run = pstamptool -pendingjob … … 410 430 411 431 task.exec 412 stdout $LOGSUBDIR/pstamp.job.run.log432 stdout NULL 413 433 stderr $LOGSUBDIR/pstamp.job.run.log 414 434 book npages pstampJob -var N … … 488 508 489 509 task.exec 490 stdout $LOGSUBDIR/pstamp.job.revert.log510 stdout NULL 491 511 stderr $LOGSUBDIR/pstamp.job.revert.log 492 512 $run = pstamptool -revertjob -all … … 524 544 525 545 periods -poll $LOADPOLL 526 # XXX: create a macro for this 527 periods -exec 30546 # XXX: create a macro for this time 547 periods -exec 10 528 548 # periods -exec $LOADEXEC 529 periods -timeout 30 549 periods -timeout 300 530 550 npending 1 531 551 532 552 task.exec 533 stdout $LOGSUBDIR/pstamp.dependent.load.log553 stdout NULL 534 554 stderr $LOGSUBDIR/pstamp.dependent.load.log 535 555 $run = pstamptool -pendingdependent … … 579 599 580 600 task.exec 581 # stdout $LOGSUBDIR/pstamp.dependent.run.log582 # stderr $LOGSUBDIR/pstamp.dependent.run.log583 601 book npages pstampDependent -var N 584 602 if ($N == 0) … … 590 608 book getpage pstampDependent 0 -var pageName -key pantaskState INIT 591 609 if ("$pageName" == "NULL") break 592 593 #echo pageName: $pageName594 610 595 611 book setword pstampDependent $pageName pantaskState RUN … … 601 617 book getword pstampDependent $pageName imagedb -var IMAGEDB 602 618 book getword pstampDependent $pageName rlabel -var RLABEL 603 # book getword pstampDependent $pageName output_base -var OUTPUT_BASE 619 book getword pstampDependent $pageName outdir -var OUTDIR 604 620 book getword pstampDependent $pageName need_magic -var NEED_MAGIC 605 621 book getword pstampDependent $pageName dbname -var DBNAME … … 617 633 end 618 634 619 # XXX: use OUTPUT_BASE for this 620 $LOGFILE = /data/ipp053.0/home/bills/pstamp/logs/pstampdep.$DEP_ID.log 621 # echo logfile is $LOGFILE 622 # stdout $LOGFILE 623 # stderr $LOGFILE 635 $MYLOGFILE = $OUTDIR/checkdep.$DEP_ID.log 636 stdout $MYLOGFILE 637 stderr $MYLOGFILE 624 638 625 639 $run = pstamp_checkdependent.pl --dep_id $DEP_ID --stage_id $STAGE_ID --stage $STAGE --component $COMPONENT --imagedb $IMAGEDB --rlabel $RLABEL $NEED_MAGIC 640 626 641 add_standard_args run 627 642 … … 664 679 end 665 680 681 task pstamp.cleanup.load 682 host local 683 684 periods -poll $LOADPOLL 685 periods -exec $LOADEXEC 686 periods -timeout 300 687 npending 1 688 689 task.exec 690 stdout NULL 691 stderr $LOGSUBDIR/pstamp.cleanup.load.log 692 $run = pstamptool -pendingcleanup 693 if ($DB:n == 0) 694 option DEFAULT 695 else 696 option $DB:$pstampCleanup_DB 697 $run = $run $PS_DBSERVER -dbname $DB:$pstampCleanup_DB 698 $pstampCleanup_DB ++ 699 if ($pstampCleanup_DB >= $DB:n) set pstampCleanup_DB = 0 700 end 701 add_poll_args run 702 add_poll_labels run 703 command $run 704 end 705 706 task.exit $EXIT_SUCCESS 707 ipptool2book stdout pstampCleanup -key req_id -uniq -setword dbname $options:0 -setword pantaskState INIT 708 if ($VERBOSE > 2) 709 echo starting request 710 book listbook pstampCleanup 711 end 712 713 process_cleanup pstampCleanup 714 end 715 716 task.exit default 717 showcommand failure 718 end 719 720 task.exit crash 721 showcommand crash 722 end 723 724 task.exit timeout 725 showcommand timeout 726 end 727 end 728 729 task pstamp.cleanup.run 730 periods -poll $RUNPOLL 731 periods -exec $RUNEXEC 732 periods -timeout 300 733 # since everything is on one file system keep npending low to avoid 734 # overloading nfs 735 736 npending 10 737 738 task.exec 739 book npages pstampCleanup -var N 740 if ($N == 0) 741 periods -exec $RUNEXEC 742 break 743 end 744 periods -exec 0.05 745 746 book getpage pstampCleanup 0 -var pageName -key pantaskState INIT 747 if ("$pageName" == "NULL") break 748 749 book setword pstampCleanup $pageName pantaskState RUN 750 book getword pstampCleanup $pageName req_id -var REQ_ID 751 book getword pstampCleanup $pageName dbname -var DBNAME 752 book getword pstampCleanup $pageName name -var NAME 753 book getword pstampCleanup $pageName outdir -var OUTDIR 754 book getword pstampCleanup $pageName uri -var URI 755 book getword pstampCleanup $pageName reqType -var REQTYPE 756 book getword pstampCleanup $pageName outProduct -var PRODUCT 757 758 # XXX: have the script set this up this 759 $MYLOGFILE=/data/ippdb02.0/pstamp/work/logs/cleanup.$REQ_ID 760 stdout $MYLOGFILE 761 stderr $MYLOGFILE 762 763 host anyhost 764 765 $run = pstamp_cleanup.pl --req_id $REQ_ID --uri $URI --product $PRODUCT --name $NAME --outdir $OUTDIR --reqType $REQTYPE 766 767 add_standard_args run 768 options $pageName 769 770 if ($VERBOSE > 1) 771 echo command $run 772 end 773 command $run 774 end 775 776 777 task.exit $EXIT_SUCCESS 778 process_exit pstampCleanup $options:0 $JOB_STATUS 779 end 780 781 task.exit default 782 showcommand failure 783 process_exit pstampCleanup $options:0 $JOB_STATUS 784 end 785 786 task.exit crash 787 showcommand crash 788 book setword pstampCleanup $options:0 pantaskState CRASH 789 end 790 791 task.exit timeout 792 showcommand timeout 793 book setword pstampCleanup $options:0 pantaskState TIMEOUT 794 end 795 end 796 -
branches/czw_branch/20100427/ippTasks/stack.pro
r27472 r28017 116 116 end 117 117 add_poll_args run 118 #add_poll_labels run118 add_poll_labels run 119 119 command $run 120 120 end … … 172 172 book getword stackSumSkyfile $pageName skycell_id -var SKYCELL_ID 173 173 book getword stackSumSkyfile $pageName workdir -var WORKDIR_TEMPLATE 174 book getword stackSumSkyfile $pageName path_base -var PATH_BASE 174 175 book getword stackSumSkyfile $pageName reduction -var REDUCTION 175 176 book getword stackSumSkyfile $pageName dbname -var DBNAME … … 185 186 186 187 basename $TESS_DIR -var TESS_ID 187 sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID 188 if ("$PATH_BASE" == "NULL") 189 sprintf outroot "%s/%s/%s/%s.%s.stk.%s" $WORKDIR $TESS_ID $SKYCELL_ID $TESS_ID $SKYCELL_ID $STACK_ID 190 else 191 $outroot = $PATH_BASE 192 end 188 193 189 194 stdout $LOGDIR/stack.skycell.log -
branches/czw_branch/20100427/ippTasks/summit.copy.pro
r26698 r28017 107 107 periods -timeout 20 108 108 npending 1 109 # trange 16:00 23:59 110 # trange 00:00 04:00 109 110 # only active in the day (06:00 to 19:00 HST, times are UT): 111 trange -reset 112 # trange 16:00 23:59 113 # trange 00:00 05:00 111 114 112 115 task.exec … … 153 156 # and inserting these into a db table on the local cluster (pzDownloadExp) 154 157 task pzgetexp 158 host local 159 155 160 periods -exec 30 156 161 periods -poll 1 157 162 periods -timeout 700 158 # trage 16:00 23:59159 # trage 00:00 04:00160 163 npending 1 161 host local 164 165 # only active in the day (06:00 to 19:00 HST, times are UT): 166 trange -reset 167 # trange 16:00 23:59 168 # trange 00:00 05:00 162 169 163 170 task.exec … … 213 220 periods -poll 1 214 221 periods -timeout 20 215 # trange 16:00 23:59216 # trange 00:00 04:00217 222 npending 1 223 224 # only active in the day (06:00 to 19:00 HST, times are UT): 225 trange -reset 226 # trange 16:00 23:59 227 # trange 00:00 05:00 218 228 219 229 task.exec … … 224 234 # save the DB name for the exit tasks 225 235 option $DB:$pztoolPendingExp_DB 226 command pztool -pendingexp -limit 5-dbname $DB:$pztoolPendingExp_DB236 command pztool -pendingexp -limit 10 -dbname $DB:$pztoolPendingExp_DB 227 237 $pztoolPendingExp_DB ++ 228 238 if ($pztoolPendingExp_DB >= $DB:n) set pztoolPendingExp_DB = 0 … … 261 271 # database table of imfiles 262 272 task pzgetimfile 273 host local 274 263 275 periods -exec 0.05 264 276 periods -poll 0.025 265 277 periods -timeout 700 266 # trage 16:00 23:59267 # trage 00:00 04:00268 host local269 278 npending 10 279 280 # only active in the day (06:00 to 19:00 HST, times are UT): 281 trange -reset 282 # trange 16:00 23:59 283 # trange 00:00 05:00 270 284 271 285 task.exec … … 336 350 host local 337 351 338 periods -exec 30352 periods -exec 10 339 353 periods -poll 1 340 354 periods -timeout 120 341 # trage 16:00 23:59342 # trage 00:00 04:00343 355 npending 1 356 357 # only active in the day (06:00 to 19:00 HST, times are UT): 358 trange -reset 359 # trange 16:00 23:59 360 # trange 00:00 05:00 344 361 345 362 # select entries from the current DB; cycle to the next DB, if it exists … … 352 369 # save the DB name for the exit tasks 353 370 option $DB:$pztoolPendingImfile_DB 354 command pztool -pendingimfile -limit 60 -dbname $DB:$pztoolPendingImfile_DB371 command pztool -pendingimfile -limit 240 -dbname $DB:$pztoolPendingImfile_DB 355 372 $pztoolPendingImfile_DB ++ 356 373 if ($pztoolPendingImfile_DB >= $DB:n) set pztoolPendingImfile_DB = 0 … … 384 401 periods -poll 0.05 385 402 periods -timeout 1150 403 404 # only active in the day (06:00 to 19:00 HST, times are UT): 386 405 trange -reset 387 # only active in the night (18:00 to 06:00 HST, times are UT):388 # trange 04:00 16:00389 # only active in the day (06:00 to 18:00 HST, times are UT):390 406 # trange 16:00 23:59 391 # trange 00:00 0 4:00407 # trange 00:00 05:00 392 408 393 409 task.exec … … 548 564 periods -poll 1 549 565 periods -timeout 120 550 # trage 16:00 23:59551 # trage 00:00 04:00552 566 npending 1 553 567 … … 592 606 periods -poll 0.05 593 607 periods -timeout 650 594 # trage 16:00 23:59595 # trage 00:00 04:00596 608 597 609 task.exec -
branches/czw_branch/20100427/ippTasks/warp.pro
r27620 r28017 314 314 book getword warpPendingSkyCell $pageName camera -var CAMERA 315 315 book getword warpPendingSkyCell $pageName workdir -var WORKDIR_TEMPLATE 316 book getword warpPendingSkyCell $pageName path-base -var PATH_BASE 316 317 book getword warpPendingSkyCell $pageName dbname -var DBNAME 317 318 # XXX change tess_id to tess_dir when schema is changed … … 331 332 set.workdir.by.skycell $SKYCELL_ID $WORKDIR_TEMPLATE $default_host WORKDIR 332 333 333 ## generate outroot specific to this exposure 334 sprintf outroot "%s/%s/%s.wrp.%s.%s" $WORKDIR $EXP_TAG $EXP_TAG $WARP_ID $SKYCELL_ID 334 if ("$PATH_BASE" == "NULL") 335 ## generate outroot specific to this exposure 336 sprintf outroot "%s/%s/%s.wrp.%s.%s" $WORKDIR $EXP_TAG $EXP_TAG $WARP_ID $SKYCELL_ID 337 else 338 $outroot = $PATH_BASE 339 end 335 340 336 341 stdout $LOGDIR/warp.skycell.log
Note:
See TracChangeset
for help on using the changeset viewer.
