Changeset 33638 for branches/eam_branches/ipp-20111122/ippTasks/addstar.pro
- Timestamp:
- Mar 30, 2012, 2:49:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20111122/ippTasks/addstar.pro
r32851 r33638 26 26 active true 27 27 end 28 task addstar.exp.load.staticsky_multi29 active true30 end31 28 task addstar.exp.run 32 29 active true … … 44 41 active false 45 42 end 46 task addstar.exp.load.staticsky_multi47 active false48 end49 43 task addstar.exp.run 50 44 active false … … 53 47 54 48 macro addstar.revert.off 55 task addstar.revert 49 task addstar.revert.cam 50 active false 51 end 52 task addstar.revert.stack 53 active false 54 end 55 task addstar.revert.staticsky 56 56 active false 57 57 end 58 58 end 59 59 macro addstar.revert.on 60 task addstar.revert 60 task addstar.revert.cam 61 active true 62 end 63 task addstar.revert.stack 64 active true 65 end 66 task addstar.revert.staticsky 61 67 active true 62 68 end … … 65 71 66 72 # this variable will cycle through the known database names 67 $addstar_DB = 0 68 $addstar_revert_DB = 0 73 $addstar_DB = 0 74 #this may not work for more databases (addstar) will do that later) 75 $addstar_revert_DB_C = 0 76 $addstar_revert_DB_S = 0 77 $addstar_revert_DB_SS = 0 78 $addstar_revert_DB_SSM = 0 69 79 70 80 … … 237 247 end 238 248 239 task addstar.exp.load.staticsky_multi240 host local241 242 periods -poll $LOADPOLL243 periods -exec $LOADEXEC244 periods -timeout 30245 npending 1246 247 stdout NULL248 stderr $LOGDIR/addstar.exp.log249 250 task.exec251 # if ($LABEL:n == 0) break252 $run = addtool -pendingexp -stage staticsky_multi253 if ($DB:n == 0)254 option DEFAULT255 else256 # save the DB name for the exit tasks257 option $DB:$addstar_DB258 $run = $run -dbname $DB:$addstar_DB259 $addstar_DB ++260 if ($addstar_DB >= $DB:n) set addstar_DB = 0261 end262 add_poll_args run263 add_poll_labels run264 command $run265 end266 267 # success268 task.exit 0269 # convert 'stdout' to book format270 ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT271 if ($VERBOSE > 2)272 book listbook addPendingExp273 end274 275 # delete existing entries in the appropriate pantaskStates276 process_cleanup addPendingExp277 end278 279 # default exit status280 task.exit default281 showcommand failure282 end283 284 task.exit crash285 showcommand crash286 end287 288 # operation times out?289 task.exit timeout290 showcommand timeout291 end292 end293 294 249 295 250 # run the addstar script on pending exposures … … 318 273 book getword addPendingExp $pageName stage_extra1 -var STAGE_EXTRA1 319 274 book getword addPendingExp $pageName stageroot -var STAGEROOT 320 book getword addPendingExp $pageName stage -var STAGE 275 book getword addPendingExp $pageName stage -var STAGE 276 book getword addPendingExp $pageName stage_id -var STAGE_ID 321 277 book getword addPendingExp $pageName workdir -var WORKDIR_TEMPLATE 322 278 book getword addPendingExp $pageName reduction -var REDUCTION … … 350 306 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 351 307 end 352 if ("$STAGE" == "staticsky_multi")353 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID354 end355 308 if ("$STAGE" == "stack") 356 309 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID … … 365 318 $run = $run --reduction $REDUCTION 366 319 end 367 if ("$STAGE" == "staticsky _multi")320 if ("$STAGE" == "staticsky") 368 321 $run = $run --multi_num $STAGE_EXTRA1 322 end 323 if ("$STAGE" == "cam") 324 $run = $run --stage_id $STAGE_ID 369 325 end 370 326 if ("$IMAGE_ONLY" == "T") … … 411 367 end 412 368 413 task addstar.revert 369 task addstar.revert.cam 414 370 host local 415 371 … … 425 381 task.exec 426 382 if ($LABEL:n == 0) break 427 $run = addtool -revertprocessedexp 383 $run = addtool -revertprocessedexp -stage cam 428 384 if ($DB:n == 0) 429 385 option DEFAULT 430 386 else 431 387 # save the DB name for the exit tasks 432 option $DB:$addstar_revert_DB 433 $run = $run -dbname $DB:$addstar_revert_DB 434 $addstar_revert_DB ++435 if ($addstar_revert_DB >= $DB:n) set addstar_revert_DB= 0388 option $DB:$addstar_revert_DB_C 389 $run = $run -dbname $DB:$addstar_revert_DB_C 390 $addstar_revert_DB_C ++ 391 if ($addstar_revert_DB_C >= $DB:n) set addstar_revert_DB_C = 0 436 392 end 437 393 add_poll_labels run … … 457 413 end 458 414 end 415 task addstar.revert.stack 416 host local 417 418 periods -poll 5.0 419 periods -exec 60.0 420 periods -timeout 1200 421 npending 1 422 active false 423 424 stdout NULL 425 stderr $LOGDIR/revert.log 426 427 task.exec 428 if ($LABEL:n == 0) break 429 $run = addtool -revertprocessedexp -stage stack 430 if ($DB:n == 0) 431 option DEFAULT 432 else 433 # save the DB name for the exit tasks 434 option $DB:$addstar_revert_DB_S 435 $run = $run -dbname $DB:$addstar_revert_DB_S 436 $addstar_revert_DB_S ++ 437 if ($addstar_revert_DB_S >= $DB:n) set addstar_revert_DB_S = 0 438 end 439 add_poll_labels run 440 command $run 441 end 442 443 # success 444 task.exit 0 445 end 446 447 # locked list 448 task.exit default 449 showcommand failure 450 end 451 452 task.exit crash 453 showcommand crash 454 end 455 456 # operation times out? 457 task.exit timeout 458 showcommand timeout 459 end 460 end 461 462 task addstar.revert.staticsky 463 host local 464 465 periods -poll 5.0 466 periods -exec 60.0 467 periods -timeout 1200 468 npending 1 469 active false 470 471 stdout NULL 472 stderr $LOGDIR/revert.log 473 474 task.exec 475 if ($LABEL:n == 0) break 476 $run = addtool -revertprocessedexp -stage staticsky 477 if ($DB:n == 0) 478 option DEFAULT 479 else 480 # save the DB name for the exit tasks 481 option $DB:$addstar_revert_DB_SSM 482 $run = $run -dbname $DB:$addstar_revert_DB_SSM 483 $addstar_revert_DB_SSM ++ 484 if ($addstar_revert_DB_SSM >= $DB:n) set addstar_revert_DB_SSM = 0 485 end 486 add_poll_labels run 487 command $run 488 end 489 490 # success 491 task.exit 0 492 end 493 494 # locked list 495 task.exit default 496 showcommand failure 497 end 498 499 task.exit crash 500 showcommand crash 501 end 502 503 # operation times out? 504 task.exit timeout 505 showcommand timeout 506 end 507 end
Note:
See TracChangeset
for help on using the changeset viewer.
