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