Changeset 27838 for branches/tap_branches/ippTasks/magic.pro
- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/magic.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/ippTasks/magic.pro
r25419 r27838 14 14 $magicToTree_DB = 0 15 15 $magicToProcess_DB = 0 16 $magicRevertTree_DB = 0 17 $magicRevertNode_DB = 0 16 18 17 19 ### Check status of tasks … … 28 30 29 31 ### Turn tasks on 32 macro magic.revert.on 33 task magic.revert.node 34 active true 35 end 36 task magic.revert.tree 37 active true 38 end 39 end 40 30 41 macro magic.on 31 42 task magic.tree.load … … 40 51 task magic.process.run 41 52 active true 53 end 54 magic.revert.on 55 end 56 57 macro magic.revert.off 58 task magic.revert.node 59 active false 60 end 61 task magic.revert.tree 62 active false 42 63 end 43 64 end … … 57 78 active false 58 79 end 80 magic.revert.off 59 81 end 60 82 … … 190 212 191 213 periods -poll $LOADPOLL 192 periods -exec $LOADEXEC 193 periods -timeout 30 214 # periods -exec $LOADEXEC 215 periods -exec 30 216 periods -timeout 300 194 217 npending 1 195 218 … … 283 306 $WORKDIR = $WORKDIR_TEMPLATE 284 307 285 sprintf outroot "%s/%s/%s.mgc.%s.%s" $WORKDIR $EXP_ID $EXP_ID $MAGIC_ID $NODE 286 287 ## generate output log based on filerule (convert the URI to a PATH) 288 ## caution with neb:// names here: 289 # $logfile = `ipp_filename.pl --filerule LOG.EXP --camera $CAMERA --class_id $MAGIC_ID --basename $outroot` 290 $logfile = $outroot.log 308 sprintf baseroot "%s/%s/%s.mgc.%s" $WORKDIR $EXP_ID $EXP_ID $MAGIC_ID 309 310 $logfile = $baseroot.$NODE.log 291 311 if ("$logfile" == "") 292 312 echo "WARNING: logfile not defined in magic.process.run" … … 299 319 mkdir $outpath 300 320 301 $run = magic_process.pl --magic_id $MAGIC_ID --camera $CAMERA --node $NODE -- outroot $outroot --logfile $logfile321 $run = magic_process.pl --magic_id $MAGIC_ID --camera $CAMERA --node $NODE --baseroot $baseroot --logfile $logfile 302 322 add_standard_args run 303 323 … … 328 348 end 329 349 end 350 351 task magic.revert.node 352 host local 353 354 periods -poll 60.0 355 periods -exec 1800.0 356 periods -timeout 120.0 357 npending 1 358 359 stdout NULL 360 stderr $LOGSUBDIR/revertnode.log 361 362 task.exec 363 if ($LABEL:n == 0) break 364 $run = magictool -revertnode 365 if ($DB:n == 0) 366 option DEFAULT 367 else 368 # save the DB name for the exit tasks 369 option $DB:$magicRevertNode_DB 370 $run = $run -dbname $DB:$magicRevertNode_DB 371 $magicRevertNode_DB ++ 372 if ($magicRevertNode_DB >= $DB:n) set magicRevertNode_DB = 0 373 end 374 add_poll_labels run 375 command $run 376 end 377 378 # success 379 task.exit 0 380 end 381 382 # locked list 383 task.exit default 384 showcommand failure 385 end 386 387 task.exit crash 388 showcommand crash 389 end 390 391 # operation times out? 392 task.exit timeout 393 showcommand timeout 394 end 395 end 396 task magic.revert.tree 397 host local 398 399 periods -poll 60.0 400 periods -exec 1800.0 401 periods -timeout 120.0 402 npending 1 403 404 stdout NULL 405 stderr $LOGSUBDIR/reverttree.log 406 407 task.exec 408 if ($LABEL:n == 0) break 409 $run = magictool -reverttree 410 if ($DB:n == 0) 411 option DEFAULT 412 else 413 # save the DB name for the exit tasks 414 option $DB:$magicRevertTree_DB 415 $run = $run -dbname $DB:$magicRevertTree_DB 416 $magicRevertTree_DB ++ 417 if ($magicRevertTree_DB >= $DB:n) set magicRevertTree_DB = 0 418 end 419 add_poll_labels run 420 command $run 421 end 422 423 # success 424 task.exit 0 425 end 426 427 # locked list 428 task.exit default 429 showcommand failure 430 end 431 432 task.exit crash 433 showcommand crash 434 end 435 436 # operation times out? 437 task.exit timeout 438 showcommand timeout 439 end 440 end
Note:
See TracChangeset
for help on using the changeset viewer.
