Changeset 25465 for trunk/ippTasks
- Timestamp:
- Sep 21, 2009, 2:49:37 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/destreak.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/destreak.pro
r25463 r25465 13 13 ### indexes into Database lists 14 14 $magicToDS_DB = 0 15 $magicDSAdvance_DB = 0 15 16 $magicDSToRevert_DB = 0 16 17 $magicDSCompletedRevert_DB = 0 … … 41 42 ### Turn tasks on 42 43 macro destreak.on 44 # destreak and revert should not run at the same time 45 destreak.revert.off 46 43 47 task destreak.load 44 48 active true … … 47 51 active true 48 52 end 53 task destreak.advance 54 active true 55 end 49 56 end 50 57 51 58 macro destreak.revert.on 59 # destreak and revert should not run at the same time 60 destreak.off 61 52 62 task destreak.revert.load 53 63 active true … … 67 77 end 68 78 task destreak.run 79 active false 80 end 81 task destreak.advance 69 82 active false 70 83 end … … 100 113 npending 1 101 114 102 stdout NULL103 stderr $LOGDIR/magic.destreak.log115 # stdout NULL 116 # stderr $LOGSUBDIR/destreak.load.log 104 117 105 118 task.exec … … 233 246 end 234 247 248 task destreak.advance 249 # task to finish processing for magicDSRuns 250 host local 251 252 periods -poll $LOADPOLL 253 #periods -exec $LOADEXEC 254 periods -exec 30 255 periods -timeout 20 256 npending 1 257 258 # stdout NULL 259 # stderr $LOGSUBDIR/destreak.advance.log 260 261 task.exec 262 $run = magicdstool -advancerun 263 if ($DB:n != 0) 264 265 $run = $run -dbname $DB:$magicDSAdvance_DB 266 267 $magicDSAdvance_DB ++ 268 if ($magicDSAdvance_DB >= $DB:n) set magicDSAdvance_DB = 0 269 end 270 add_poll_args run 271 add_poll_labels run 272 command $run 273 end 274 275 # success 276 task.exit 0 277 end 278 279 # locked list 280 task.exit default 281 showcommand failure 282 end 283 284 task.exit crash 285 showcommand crash 286 end 287 288 # operation times out? 289 task.exit timeout 290 showcommand timeout 291 end 292 end 293 235 294 task destreak.revert.load 236 295 host local … … 386 445 387 446 stdout NULL 388 stderr $LOGSUBDIR/destreak.completed.revert 447 stderr $LOGSUBDIR/destreak.completed.revert.log 389 448 390 449 task.exec … … 398 457 $run = $run -dbname $DB:$magicDSCompletedRevert_DB 399 458 459 $magicDSCompletedRevert_DB ++ 400 460 if ($magicDSCompletedRevert_DB >= $DB:n) set magicDSCompletedRevert_DB = 0 401 461 end
Note:
See TracChangeset
for help on using the changeset viewer.
