Changeset 10746
- Timestamp:
- Dec 15, 2006, 7:14:33 AM (19 years ago)
- Location:
- trunk/ippTasks
- Files:
-
- 3 edited
-
pantasks.pro (modified) (3 diffs)
-
phase0.pro (modified) (3 diffs)
-
phase2.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pantasks.pro
r10745 r10746 7 7 # $scripts = $HOME/src/pantasks/ipp/ippTasks 8 8 $scripts = . 9 $LOGDIR = `ipp_datapath.pl path://ESSENCE`9 # $LOGDIR = `ipp_datapath.pl path://ESSENCE` 10 10 # $LOGDIR = `ipp_datapath.pl path://SIMTEST` 11 $LOGDIR = `ipp_datapath.pl path://ISPTEST` 11 12 12 13 $LOGDIR = $LOGDIR/logs … … 21 22 if ($parallel) 22 23 controller exit true 23 # controller host add alala 24 controller host add sn2 25 controller host add sn3 26 controller host add sn4 27 controller host add sn5 24 controller host add po02 25 controller host add po03 26 controller host add po04 27 controller host add po05 28 controller host add po06 29 controller host add po07 30 controller host add po08 31 controller host add po09 32 controller host add po10 28 33 # controller host add sn6 29 34 # sn7 serves the disk … … 34 39 35 40 macro load.tasks 36 #input $scripts/phase0.pro41 input $scripts/phase0.pro 37 42 # input $scripts/phase2.pro 38 43 # input $scripts/phase3.pro 39 input $scripts/detrend.process.pro40 input $scripts/detrend.stack.pro41 input $scripts/detrend.norm.pro42 input $scripts/detrend.resid.pro43 input $scripts/detrend.reject.pro44 # input $scripts/detrend.process.pro 45 # input $scripts/detrend.stack.pro 46 # input $scripts/detrend.norm.pro 47 # input $scripts/detrend.resid.pro 48 # input $scripts/detrend.reject.pro 44 49 end 45 50 -
trunk/ippTasks/phase0.pro
r10723 r10746 79 79 # locked list 80 80 task.exit default 81 showcommand 82 end 83 84 # operation times out? 85 task.exit timeout 86 showcommand 81 showcommand failure 82 end 83 84 # operation times out? 85 task.exit timeout 86 showcommand timeout 87 87 end 88 88 end … … 149 149 # default exit status 150 150 task.exit default 151 showcommand 151 showcommand failure 152 152 queuepush Phase0Imfiles -replace -key 1 "FAIL $options:0" 153 153 $Phase0ImfileFail ++ … … 156 156 # operation times out? 157 157 task.exit timeout 158 showcommand 158 showcommand timeout 159 159 queuepush Phase0Imfiles -replace -key 1 "TIMEOUT $options:0" 160 160 $Phase0ImfileFail ++ -
trunk/ippTasks/phase2.pro
r9506 r10746 14 14 end 15 15 16 $Phase2ImfileFail = 0 17 18 if ($?VERBOSE == 0) 19 echo "VERBOSE not defined: load pantasks.pro first" 20 break 21 end 22 if ($?LOGDIR == 0) 23 echo "LOGDIR not defined: load pantasks.pro first" 24 break 25 end 26 $LOGSUBDIR = $LOGDIR/phase2 27 exec mkdir -p $LOGSUBDIR 28 29 macro phase2.status 30 queueprint Phase2Imfiles 31 echo "Phase2ImfileFail: $Phase2ImfileFail" 32 end 33 16 34 # select images ready for phase2 analysis 17 35 # new entries are added to queue Phase2Imfiles 18 36 # compare the new list with the ones already selected 19 37 task phase2.imfile.load 20 command p2tool -pendingimfile -simple21 38 host local 22 39 … … 25 42 periods -timeout 30 26 43 27 stdout phase2.imfile.log 28 stderr phase2.imfile.log 44 stdout $LOGSUBDIR/phase2.imfile.log 45 stderr $LOGSUBDIR/phase2.imfile.log 46 47 task.exec 48 command p2tool -pendingimfile -simple -limit {$Phase2ImfileFail + 20} 49 end 29 50 30 51 # success … … 39 60 for i 0 $Nqueue 40 61 queuepop stdout -var line 62 if ($VERBOSE > 2) 63 echo $line 64 end 41 65 list word -split $line 42 66 $EXP_TAG = $word:0 … … 52 76 # locked list 53 77 task.exit default 54 echo "phase2 pending imfiles: failure"78 showcommand failure 55 79 end 56 80 57 81 # operation times out? 58 82 task.exit timeout 59 echo "phase2 pending imfiles: timeout"83 showcommand timeout 60 84 end 61 85 end … … 96 120 97 121 ## add 'p2' to the log files? 98 $LOG_DIR = `dirname $URI` 99 stdout $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log 100 stderr $WORKDIR/$LOG_DIR/$EXP_TAG.$CLASS_ID.log 122 # XXX this is still a lame rule 123 $word = `basename $EXP_TAG | tr '.' ' '` 124 list word -split $word 125 $base = $word:0 126 stdout $LOGSUBDIR/$base/$EXP_TAG.$CLASS_ID.log 127 stderr $LOGSUBDIR/$base/$EXP_TAG.$CLASS_ID.log 128 exec mkdir -p $LOGSUBDIR/$base 101 129 102 130 # create the command line 103 131 options "$line" 104 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 132 if ($VERBOSE > 1) 133 echo command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 134 end 105 135 command phase2.pl --exp_tag $EXP_TAG --class_id $CLASS_ID --uri $URI 106 136 end … … 114 144 # default exit status 115 145 task.exit default 116 echo "failure for phase2imfile.pl: $options:0"146 showcommand failure 117 147 queuepush Phase2Imfiles -replace -key 1:2 "FAIL $options:0" 148 $Phase2ImfileFail ++ 118 149 end 119 150 120 151 # operation times out? 121 152 task.exit timeout 122 echo "timeout for phase2imfile.pl: $options:0"153 showcommand timeout 123 154 queuepush Phase2Imfiles -replace -key 1:2 "TIMEOUT $options:0" 155 $Phase2ImfileFail ++ 124 156 end 125 157 end
Note:
See TracChangeset
for help on using the changeset viewer.
