Changeset 27838 for branches/tap_branches/ippTasks/destreak.pro
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/destreak.pro (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/ippTasks/destreak.pro
r25822 r27838 31 31 32 32 ### Check status of tasks 33 macro magic.status 33 macro destreak.status 34 # since echo and listbook output go to different files these do not come in order 35 echo magicToDS 34 36 book listbook magicToDS 37 echo magicDSToRevert 35 38 book listbook magicDSToRevert 36 book init magicDSToCleanup37 39 end 38 40 39 41 ### Reset tasks 40 macro magic.reset42 macro destreak.reset 41 43 book init magicToDS 42 44 book init magicDSToRevert … … 46 48 ### Turn tasks on 47 49 macro destreak.on 48 # destreak and revert should not run at the same time49 destreak.revert.off50 51 50 task destreak.load 52 51 active true … … 61 60 62 61 macro destreak.revert.on 63 # destreak and revert should not run at the same time64 destreak.off65 66 62 task destreak.revert.load 67 63 active true … … 117 113 end 118 114 119 macro destreak.status120 echo magicToDS121 book listbook magicToDS122 echo ""123 echo magicDSToRevert124 book listbook magicDSToRevert125 end126 115 127 116 task destreak.load … … 138 127 139 128 task.exec 140 $run = magicdstool -todestreak - limit 120 -stage $DS_STAGE:$magicDSStage129 $run = magicdstool -todestreak -stage $DS_STAGE:$magicDSStage 141 130 $magicDSStage ++ 142 131 if ($magicDSStage >= $DS_STAGE:n) set magicDSStage = 0 … … 195 184 stdout $LOGSUBDIR/destreak.run.log 196 185 stderr $LOGSUBDIR/destreak.run.log 186 187 # if we are unable to run the 'exec', use a long retry time 188 periods -exec $RUNEXEC 189 190 if ($NETWORK == 0) break 197 191 book npages magicToDS -var N 198 192 if ($N == 0) break 199 if ($NETWORK == 0) break 200 193 201 194 # look for new images (pantaskState == INIT) 202 195 book getpage magicToDS 0 -var pageName -key pantaskState INIT … … 215 208 book getword magicToDS $pageName path_base -var PATH_BASE 216 209 book getword magicToDS $pageName cam_path_base -var CAM_PATH_BASE 210 book getword magicToDS $pageName cam_reduction -var CAM_REDUCTION 217 211 book getword magicToDS $pageName outroot -var OUTROOT 218 212 book getword magicToDS $pageName recoveryroot -var RECROOT … … 232 226 # TODO: do not add recoveryroot or replace if they are null or zero 233 227 234 $run = magic_destreak.pl --magic_ds_id $MAGIC_DS_ID --camera $CAMERA -- 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--outroot $OUTROOT --logfile $logfile --recoveryroot $RECROOT --replace $REPLACE228 $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 235 229 236 230 add_standard_args run … … 243 237 echo command $run 244 238 end 239 240 # if we are ready to run, drop the retry timeout low so we fill up the queue 241 periods -exec 0.05 245 242 command $run 246 243 end … … 276 273 #periods -exec $LOADEXEC 277 274 periods -exec 30 278 periods -timeout 20275 periods -timeout 60 279 276 npending 1 280 277 … … 387 384 stdout $LOGSUBDIR/destreak.revert.run.log 388 385 stderr $LOGSUBDIR/destreak.revert.run.log 386 387 # if we are unable to run the 'exec', use a long retry time 388 periods -exec $RUNEXEC 389 389 390 390 book npages magicDSToRevert -var N … … 405 405 book getword magicDSToRevert $pageName path_base -var PATH_BASE 406 406 book getword magicDSToRevert $pageName cam_path_base -var CAM_PATH_BASE 407 book getword magicDSToRevert $pageName cam_reduction -var CAM_REDUCTION 407 408 book getword magicDSToRevert $pageName outroot -var OUTROOT 408 409 book getword magciDSToRevert $pageName bytes -var BYTES … … 410 411 # book getword magicDSToRevert $pageName recoveryroot -var RECROOT 411 412 book getword magicDSToRevert $pageName re_place -var REPLACE 413 book getword magicDSToRevert $pageName bothways -var BOTHWAYS 412 414 book getword magicDSToRevert $pageName dbname -var DBNAME 413 415 … … 422 424 end 423 425 424 $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 -- outroot $OUTROOT --logfile $logfile --replace $REPLACE426 $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 425 427 426 428 add_standard_args run … … 433 435 echo command $run 434 436 end 437 # if we are ready to run, drop the retry timeout low so we fill up the queue 438 periods -exec 0.05 435 439 command $run 436 440 end … … 577 581 stdout $LOGSUBDIR/destreak.cleanup.run.log 578 582 stderr $LOGSUBDIR/destreak.cleanup.run.log 583 584 # if we are unable to run the 'exec', use a long retry time 585 periods -exec $RUNEXEC 579 586 580 587 book npages magicDSToCleanup -var N … … 607 614 echo command $run 608 615 end 616 # if we are ready to run, drop the retry timeout low so we fill up the queue 617 periods -exec 0.05 609 618 command $run 610 619 end
Note:
See TracChangeset
for help on using the changeset viewer.
