Changeset 25423 for trunk/ippTasks
- Timestamp:
- Sep 16, 2009, 5:05:19 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/destreak.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/destreak.pro
r25419 r25423 11 11 book init magicDSToRevert 12 12 13 ### Database lists13 ### indexes into Database lists 14 14 $magicToDS_DB = 0 15 15 $magicDSToRevert_DB = 0 16 $magicDSCompletedRevert_DB = 0 16 17 17 18 #list of stages … … 28 29 ### Check status of tasks 29 30 macro magic.status 30 book listbook magicToDS31 book listbook magicDSToRevert31 book listbook magicToDS 32 book listbook magicDSToRevert 32 33 end 33 34 34 35 ### Reset tasks 35 36 macro magic.reset 36 book init magicToDS37 book init magicDSToRevert37 book init magicToDS 38 book init magicDSToRevert 38 39 end 39 40 40 41 ### Turn tasks on 41 42 macro destreak.on 42 task destreak.load43 active true44 end45 task destreak.run46 active true47 end43 task destreak.load 44 active true 45 end 46 task destreak.run 47 active true 48 end 48 49 end 49 50 … … 55 56 active true 56 57 end 57 end 58 task destreak.completed.revert 59 active true 60 end 61 end 62 58 63 ### Turn tasks off 59 64 macro destreak.off 60 task destreak.load61 active false62 end63 task destreak.run64 active false65 end65 task destreak.load 66 active false 67 end 68 task destreak.run 69 active false 70 end 66 71 end 67 72 … … 71 76 end 72 77 task destreak.revert.run 78 active false 79 end 80 task destreak.completed.revert 73 81 active false 74 82 end … … 363 371 364 372 task destreak.completed.revert 373 # task to finish processing for magicDSRuns being reverted or restored 365 374 host local 366 375 367 376 periods -poll $LOADPOLL 368 periods -exec $LOADEXEC 377 #periods -exec $LOADEXEC 378 periods -exec 30 369 379 periods -timeout 20 370 380 npending 1 … … 380 390 else 381 391 # save the DB name for the exit tasks 382 option $DB:$magicDSToRevert_DB 383 $run = $run -dbname $DB:$magicDSToRevert_DB 392 option $DB:$magicDSCompletedRevert_DB 393 394 $run = $run -dbname $DB:$magicDSCompletedRevert_DB 395 396 if ($magicDSCompletedRevert_DB >= $DB:n) set magicDSCompletedRevert_DB = 0 384 397 end 385 398 add_poll_args run … … 390 403 # success 391 404 task.exit 0 392 # convert 'stdout' to book format393 ipptool2book stdout magicDSToRevert -key magic_ds_id:component -uniq -setword dbname $options:0 -setword pantaskState INIT394 if ($VERBOSE > 2)395 book listbook magicDSToRevert396 end397 398 # delete existing entries in the appropriate pantaskStates399 process_cleanup magicDSToRevert400 405 end 401 406
Note:
See TracChangeset
for help on using the changeset viewer.
