Changeset 9032 for trunk/ippTasks/phase0.pro
- Timestamp:
- Sep 28, 2006, 1:33:42 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/phase0.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/phase0.pro
r8691 r9032 6 6 ## STATE EXP_KEY CLASS CLASS_ID URI-FITS 7 7 ## queue keys are counted from 0 8 9 queueinit Phase0PendingImfiles 10 queueinit Phase0PendingExposures 11 if ($?network == 0) 12 $network = 1 13 end 8 14 9 15 # select images ready for phase0 analysis … … 18 24 periods -timeout 30 19 25 26 stdout phase0.imfile.log 27 stderr phase0.imfile.log 28 20 29 # success 21 30 task.exit 0 22 31 local i Nqueue 32 33 # save stdout and stderr 23 34 24 35 # compare output with Phase0PendingImfiles queue … … 35 46 36 47 # locked list 37 task.exit 1 38 echo "phase0 pending imfiles: exec failure" 39 end 40 41 # default exit status 42 task.exit default 43 echo "phase0 pending imfiles: unknown exit status: $EXIT" 44 end 45 46 # operation times out? 47 task.exit timeout 48 echo "phase0 pending imfiles: timeout" 48 task.exit default 49 echo "*** phase0 pending imfiles: failure" 50 end 51 52 # operation times out? 53 task.exit timeout 54 echo "*** phase0 pending imfiles: timeout" 49 55 end 50 56 end … … 70 76 queuepush Phase0PendingImfiles -replace -key 1 "RUN $line" 71 77 72 ## the Phase0PendingImfiles queue contains :78 ## the Phase0PendingImfiles queue contains (line has popped STATE) 73 79 ## STATE EXP_KEY CLASS CLASS_ID URI-FITS 74 80 list word -split $line … … 82 88 # host alala -required 83 89 ## XXX need to determine the appropriate host 84 host anyhost 90 # host anyhost 91 host local 92 echo "running phase0.imfile.process" 93 94 echo "setting stdout, stderr: $word:1.$word:3.log" 95 # do something better with this output target 96 stdout $word:0.$word:2.log 97 stderr $word:0.$word:2.log 85 98 86 99 # create the command line 100 echo "setting options $line" 87 101 options "$line" 88 command phase0imfile.pl $word:1 $word:3 $word:$4 102 103 echo command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3 104 command phase0imfile.pl --exp_id $word:0 --class_id $word:2 --uri $word:3 89 105 end 90 106 … … 120 136 periods -exec 5 121 137 periods -timeout 30 138 139 stdout phase0.exp.log 140 stderr phase0.exp.log 141 142 task.exec 143 break 144 end 122 145 123 146 # success … … 137 160 end 138 161 139 # locked list140 task.exit 1141 echo "phase0 pending exp: exec failure"142 end143 144 162 # default exit status 145 163 task.exit default 146 echo "phase0 pending exp: unknown exit status: $EXIT"164 echo "phase0 pending exp: failure" 147 165 end 148 166 … … 177 195 list word -split $line 178 196 197 # do something better with this output target 198 stdout $word:1.log 199 stderr $word:1.log 200 179 201 # specify choice of remote host: 180 202 # 'anyhost' specifies random remote host … … 185 207 # host alala -required 186 208 ## XXX need to determine the appropriate host 187 host anyhost 209 host local 210 # host anyhost 188 211 189 212 # create the command line
Note:
See TracChangeset
for help on using the changeset viewer.
