Changeset 33415 for branches/meh_branches/ppstack_test/ippTasks/addstar.pro
- Timestamp:
- Mar 5, 2012, 5:19:48 PM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/addstar.pro (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test
- Property svn:mergeinfo changed
-
branches/meh_branches/ppstack_test/ippTasks/addstar.pro
r31376 r33415 26 26 active true 27 27 end 28 task addstar.exp.load.staticsky_multi 29 active true 30 end 28 31 task addstar.exp.run 29 32 active true … … 41 44 active false 42 45 end 46 task addstar.exp.load.staticsky_multi 47 active false 48 end 43 49 task addstar.exp.run 44 50 active false … … 47 53 48 54 macro addstar.revert.off 49 task addstar.revert 55 task addstar.revert.cam 56 active false 57 end 58 task addstar.revert.stack 59 active false 60 end 61 task addstar.revert.staticsky 62 active false 63 end 64 task addstar.revert.staticsky_multi 50 65 active false 51 66 end 52 67 end 53 68 macro addstar.revert.on 54 task addstar.revert 69 task addstar.revert.cam 70 active true 71 end 72 task addstar.revert.stack 73 active true 74 end 75 task addstar.revert.staticsky_multi 76 active true 77 end 78 task addstar.revert.staticsky 55 79 active true 56 80 end … … 59 83 60 84 # this variable will cycle through the known database names 61 $addstar_DB = 0 62 $addstar_revert_DB = 0 85 $addstar_DB = 0 86 #this may not work for more databases (addstar) will do that later) 87 $addstar_revert_DB_C = 0 88 $addstar_revert_DB_S = 0 89 $addstar_revert_DB_SS = 0 90 $addstar_revert_DB_SSM = 0 63 91 64 92 … … 175 203 end 176 204 end 205 177 206 task addstar.exp.load.staticsky 178 207 host local … … 229 258 end 230 259 end 260 261 task addstar.exp.load.staticsky_multi 262 host local 263 264 periods -poll $LOADPOLL 265 periods -exec $LOADEXEC 266 periods -timeout 30 267 npending 1 268 269 stdout NULL 270 stderr $LOGDIR/addstar.exp.log 271 272 task.exec 273 # if ($LABEL:n == 0) break 274 $run = addtool -pendingexp -stage staticsky_multi 275 if ($DB:n == 0) 276 option DEFAULT 277 else 278 # save the DB name for the exit tasks 279 option $DB:$addstar_DB 280 $run = $run -dbname $DB:$addstar_DB 281 $addstar_DB ++ 282 if ($addstar_DB >= $DB:n) set addstar_DB = 0 283 end 284 add_poll_args run 285 add_poll_labels run 286 command $run 287 end 288 289 # success 290 task.exit 0 291 # convert 'stdout' to book format 292 ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT 293 if ($VERBOSE > 2) 294 book listbook addPendingExp 295 end 296 297 # delete existing entries in the appropriate pantaskStates 298 process_cleanup addPendingExp 299 end 300 301 # default exit status 302 task.exit default 303 showcommand failure 304 end 305 306 task.exit crash 307 showcommand crash 308 end 309 310 # operation times out? 311 task.exit timeout 312 showcommand timeout 313 end 314 end 315 316 231 317 # run the addstar script on pending exposures 232 318 task addstar.exp.run … … 252 338 book getword addPendingExp $pageName exp_tag -var EXP_TAG 253 339 book getword addPendingExp $pageName add_id -var ADD_ID 340 book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1 254 341 book getword addPendingExp $pageName stageroot -var STAGEROOT 255 book getword addPendingExp $pageName stage -var STAGE 342 book getword addPendingExp $pageName stage -var STAGE 343 book getword addPendingExp $pageName stage_id -var STAGE_ID 256 344 book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE 257 345 book getword addPendingExp $pageName reduction -var REDUCTION … … 285 373 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 286 374 end 375 if ("$STAGE" == "staticsky_multi") 376 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 377 end 287 378 if ("$STAGE" == "stack") 288 379 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID … … 296 387 if ("$REDUCTION" != "NULL") 297 388 $run = $run --reduction $REDUCTION 389 end 390 if ("$STAGE" == "staticsky_multi") 391 $run = $run --multi_num $STAGE_EXTRA1 392 end 393 if ("$STAGE" == "cam") 394 $run = $run --stage_id $STAGE_ID 298 395 end 299 396 if ("$IMAGE_ONLY" == "T") … … 340 437 end 341 438 342 task addstar.revert 439 task addstar.revert.cam 343 440 host local 344 441 … … 354 451 task.exec 355 452 if ($LABEL:n == 0) break 356 $run = addtool -revertprocessedexp 357 if ($DB:n == 0) 358 option DEFAULT 359 else 360 # save the DB name for the exit tasks 361 option $DB:$addstar_revert_DB 362 $run = $run -dbname $DB:$addstar_revert_DB 363 $addstar_revert_DB ++364 if ($addstar_revert_DB >= $DB:n) set addstar_revert_DB= 0453 $run = addtool -revertprocessedexp -stage cam 454 if ($DB:n == 0) 455 option DEFAULT 456 else 457 # save the DB name for the exit tasks 458 option $DB:$addstar_revert_DB_C 459 $run = $run -dbname $DB:$addstar_revert_DB_C 460 $addstar_revert_DB_C ++ 461 if ($addstar_revert_DB_C >= $DB:n) set addstar_revert_DB_C = 0 365 462 end 366 463 add_poll_labels run … … 386 483 end 387 484 end 485 task addstar.revert.stack 486 host local 487 488 periods -poll 5.0 489 periods -exec 60.0 490 periods -timeout 1200 491 npending 1 492 active false 493 494 stdout NULL 495 stderr $LOGDIR/revert.log 496 497 task.exec 498 if ($LABEL:n == 0) break 499 $run = addtool -revertprocessedexp -stage stack 500 if ($DB:n == 0) 501 option DEFAULT 502 else 503 # save the DB name for the exit tasks 504 option $DB:$addstar_revert_DB_S 505 $run = $run -dbname $DB:$addstar_revert_DB_S 506 $addstar_revert_DB_S ++ 507 if ($addstar_revert_DB_S >= $DB:n) set addstar_revert_DB_S = 0 508 end 509 add_poll_labels run 510 command $run 511 end 512 513 # success 514 task.exit 0 515 end 516 517 # locked list 518 task.exit default 519 showcommand failure 520 end 521 522 task.exit crash 523 showcommand crash 524 end 525 526 # operation times out? 527 task.exit timeout 528 showcommand timeout 529 end 530 end 531 task addstar.revert.staticsky 532 host local 533 534 periods -poll 5.0 535 periods -exec 60.0 536 periods -timeout 1200 537 npending 1 538 active false 539 540 stdout NULL 541 stderr $LOGDIR/revert.log 542 543 task.exec 544 if ($LABEL:n == 0) break 545 $run = addtool -revertprocessedexp -stage staticsky 546 if ($DB:n == 0) 547 option DEFAULT 548 else 549 # save the DB name for the exit tasks 550 option $DB:$addstar_revert_DB_SS 551 $run = $run -dbname $DB:$addstar_revert_DB_SS 552 $addstar_revert_DB_SS ++ 553 if ($addstar_revert_DB_SS >= $DB:n) set addstar_revert_DB_SS = 0 554 end 555 add_poll_labels run 556 command $run 557 end 558 559 # success 560 task.exit 0 561 end 562 563 # locked list 564 task.exit default 565 showcommand failure 566 end 567 568 task.exit crash 569 showcommand crash 570 end 571 572 # operation times out? 573 task.exit timeout 574 showcommand timeout 575 end 576 end 577 task addstar.revert.staticsky_multi 578 host local 579 580 periods -poll 5.0 581 periods -exec 60.0 582 periods -timeout 1200 583 npending 1 584 active false 585 586 stdout NULL 587 stderr $LOGDIR/revert.log 588 589 task.exec 590 if ($LABEL:n == 0) break 591 $run = addtool -revertprocessedexp -stage staticsky_multi 592 if ($DB:n == 0) 593 option DEFAULT 594 else 595 # save the DB name for the exit tasks 596 option $DB:$addstar_revert_DB_SSM 597 $run = $run -dbname $DB:$addstar_revert_DB_SSM 598 $addstar_revert_DB_SSM ++ 599 if ($addstar_revert_DB_SSM >= $DB:n) set addstar_revert_DB_SSM = 0 600 end 601 add_poll_labels run 602 command $run 603 end 604 605 # success 606 task.exit 0 607 end 608 609 # locked list 610 task.exit default 611 showcommand failure 612 end 613 614 task.exit crash 615 showcommand crash 616 end 617 618 # operation times out? 619 task.exit timeout 620 showcommand timeout 621 end 622 end
Note:
See TracChangeset
for help on using the changeset viewer.
