Changeset 34265 for trunk/ippTasks/addstar.pro
- Timestamp:
- Jul 31, 2012, 4:55:25 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/addstar.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/addstar.pro
r33989 r34265 24 24 end 25 25 task addstar.exp.load.staticsky 26 active true 27 end 28 task addstar.exp.load.skycal 26 29 active true 27 30 end … … 41 44 active false 42 45 end 46 task addstar.exp.load.skycal 47 active false 48 end 43 49 task addstar.exp.run 44 50 active false … … 50 56 active false 51 57 end 52 task addstar.revert.stack 53 active false 54 end 55 task addstar.revert.staticsky 56 active false 57 end 58 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.skycal 65 active false 66 end 67 end 68 59 69 macro addstar.revert.on 60 70 task addstar.revert.cam … … 65 75 end 66 76 task addstar.revert.staticsky 77 active true 78 end 79 task addstar.revert.skycal 67 80 active true 68 81 end … … 77 90 $addstar_revert_DB_SS = 0 78 91 $addstar_revert_DB_SSM = 0 92 $addstar_revert_DB_SC = 0 79 93 80 94 $LOADEXEX_ADD = 300 … … 244 258 245 259 # operation times out? 260 task.exit timeout 261 showcommand timeout 262 end 263 end 264 265 task addstar.exp.load.skycal 266 host local 267 periods -poll $LOADPOLL 268 periods -exec 300 269 periods -timeout 300 270 npending 1 271 272 stdout NULL 273 stderr $LOGDIR/addstar.exp.log 274 275 task.exec 276 # if ($LABEL:n == 0) break 277 $run = addtool -pendingexp -stage skycal 278 if ($DB:n == 0) 279 option DEFAULT 280 else 281 # save the DB name for the exit tasks 282 option $DB:$addstar_DB 283 $run = $run -dbname $DB:$addstar_DB 284 $addstar_DB ++ 285 if ($addstar_DB >= $DB:n) set addstar_DB = 0 286 end 287 add_poll_args run 288 add_poll_labels run 289 command $run 290 end 291 292 # success 293 task.exit 0 294 # convert 'stdout' to book format 295 ipptool2book stdout addPendingExp -key add_id -uniq -setword dbname $options:0 -setword pantaskState INIT 296 if ($VERBOSE > 2) 297 book listbook addPendingExp 298 end 299 300 # delete existing entries in the appropriate pantaskStates 301 process_cleanup addPendingExp 302 end 303 304 # default exit status 305 task.exit default 306 showcommand failure 307 end 308 309 task.exit crash 310 showcommand crash 311 end 312 313 # operation times out? 246 314 task.exit timeout 247 315 showcommand timeout … … 311 379 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 312 380 end 381 if ("$STAGE" == "skycal") 382 sprintf outroot "%s.add.%s" $STAGEROOT $ADD_ID 383 end 384 313 385 314 386 … … 326 398 $run = $run --stage_id $STAGE_ID 327 399 end 400 if ("$STAGE" == "skycal") 401 $run = $run --stage_id $STAGE_ID 402 end 403 404 405 328 406 if ("$IMAGE_ONLY" == "T") 329 407 $run = $run --image-only … … 508 586 end 509 587 end 588 589 task addstar.revert.skycal 590 host local 591 592 periods -poll 5.0 593 periods -exec 60.0 594 periods -timeout 1200 595 npending 1 596 active false 597 598 stdout NULL 599 stderr $LOGDIR/revert.log 600 601 task.exec 602 if ($LABEL:n == 0) break 603 $run = addtool -revertprocessedexp -stage skycal 604 if ($DB:n == 0) 605 option DEFAULT 606 else 607 # save the DB name for the exit tasks 608 option $DB:$addstar_revert_DB_SC 609 $run = $run -dbname $DB:$addstar_revert_DB_SC 610 $addstar_revert_DB_SC ++ 611 if ($addstar_revert_DB_SC >= $DB:n) set addstar_revert_DB_SC = 0 612 end 613 add_poll_labels run 614 command $run 615 end 616 617 # success 618 task.exit 0 619 end 620 621 # locked list 622 task.exit default 623 showcommand failure 624 end 625 626 task.exit crash 627 showcommand crash 628 end 629 630 # operation times out? 631 task.exit timeout 632 showcommand timeout 633 end 634 end
Note:
See TracChangeset
for help on using the changeset viewer.
