Changeset 28557 for trunk/ippTasks/detrend.process.pro
- Timestamp:
- Jun 30, 2010, 10:04:25 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/detrend.process.pro (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/detrend.process.pro
r23480 r28557 51 51 end 52 52 53 macro detproc.revert.off 54 task detrend.process.revert 55 active false 56 end 57 task detrend.processexp.revert 58 active false 59 end 60 end 61 62 macro detproc.revert.on 63 task detrend.process.revert 64 active true 65 end 66 task detrend.processexp.revert 67 active true 68 end 69 end 53 70 54 71 # these variables will cycle through the known database names 55 72 $detPendingProcessedImfile_DB = 0 56 73 $detPendingProcessedExp_DB = 0 74 $detPendingProcessedImfile_revert_DB = 0 75 $detPendingProcessedExp_revert_DB = 0 57 76 58 77 # select images ready for copy … … 313 332 end 314 333 end 334 335 task detrend.process.revert 336 host local 337 338 periods -poll 60.0 339 periods -exec 1800.0 340 periods -timeout 120.0 341 npending 1 342 343 stdout NULL 344 stderr $LOGDIR/revert.log 345 346 task.exec 347 348 $run = dettool -revertprocessedimfile -all 349 if ($DB:n == 0) 350 option DEFAULT 351 else 352 # save the DB name for the exit tasks 353 option $DB:$detPendingProcessedImfile_revert_DB 354 $run = $run -dbname $DB:$detPendingProcessedImfile_revert_DB 355 $detPendingProcessedImfile_revert_DB ++ 356 if ($detPendingProcessedImfile_revert_DB >= $DB:n) set detPendingProcessedImfile_revert_DB = 0 357 end 358 echo $run 359 command $run 360 end 361 362 # success 363 task.exit 0 364 end 365 366 # locked list 367 task.exit default 368 showcommand failure 369 end 370 371 task.exit crash 372 showcommand crash 373 end 374 375 # operation times out? 376 task.exit timeout 377 showcommand timeout 378 end 379 end 380 381 task detrend.processexp.revert 382 host local 383 384 periods -poll 60.0 385 periods -exec 1800.0 386 periods -timeout 120.0 387 npending 1 388 389 stdout NULL 390 stderr $LOGDIR/revert.log 391 392 task.exec 393 394 $run = dettool -revertprocessedexp -all 395 if ($DB:n == 0) 396 option DEFAULT 397 else 398 # save the DB name for the exit tasks 399 option $DB:$detPendingProcessedExp_revert_DB 400 $run = $run -dbname $DB:$detPendingProcessedExp_revert_DB 401 $detPendingProcessedExp_revert_DB ++ 402 if ($detPendingProcessedExp_revert_DB >= $DB:n) set detPendingProcessedExp_revert_DB = 0 403 end 404 echo $run 405 command $run 406 end 407 408 # success 409 task.exit 0 410 end 411 412 # locked list 413 task.exit default 414 showcommand failure 415 end 416 417 task.exit crash 418 showcommand crash 419 end 420 421 # operation times out? 422 task.exit timeout 423 showcommand timeout 424 end 425 end
Note:
See TracChangeset
for help on using the changeset viewer.
