Changeset 18589
- Timestamp:
- Jul 16, 2008, 3:30:05 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/pstamp.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/pstamp.pro
r18534 r18589 12 12 book init pstampRequest 13 13 book init pstampJob 14 book init pstampFinish 14 15 end 15 16 … … 27 28 active true 28 29 end 29 task pstamp.request.finish 30 31 task request.finish.load 32 active true 33 end 34 task request.finish.run 30 35 active true 31 36 end … … 49 54 active false 50 55 end 51 task pstamp.request.finish 56 task request.finish.load 57 active false 58 end 59 task request.finish.run 52 60 active false 53 61 end … … 173 181 end 174 182 175 task pstamp.request.finish176 #periods -poll $RUNPOLL177 #periods -exec $RUNEXEC 178 periods -poll $ RUNPOLL179 periods -exec 5180 periods -timeout 30 183 task request.finish.load 184 host local 185 186 periods -poll $LOADPOLL 187 periods -exec $LOADEXEC 188 periods -timeout 300 181 189 npending 1 182 190 … … 184 192 if ($DB:n == 0) 185 193 option DEFAULT 186 command pstamp _finish.pl --limit 10 --verbose194 command pstamptool -completedreq 187 195 else 188 196 option $DB:$pstampFin_DB 189 command pstamp _finish.pl --dbname $DB:$pstampFin_DB --limit 10 --verbose197 command pstamptool -completedreq -dbname $DB:$pstampFin_DB 190 198 $pstampFin_DB ++ 191 199 if ($pstampFin_DB >= $DB:n) set pstampFin_DB = 0 … … 194 202 195 203 task.exit $EXIT_SUCCESS 196 # nothing to do 197 end 204 ipptool2book stdout pstampFinish -key req_id -uniq -setword dbname $options:0 -setword pantaskState INIT 205 if ($VERBOSE > 2) 206 book listbook pstampFinish 207 end 208 209 process_cleanup pstampFinish 210 end 211 212 task.exit default 213 showcommand failure 214 end 215 216 task.exit timeout 217 showcommand timeout 218 end 219 end 220 221 task request.finish.run 222 periods -poll $RUNPOLL 223 periods -exec $RUNEXEC 224 periods -timeout 30 225 npending 1 226 227 task.exec 228 book npages pstampFinish -var N 229 if ($N == 0) break 230 231 book getpage pstampFinish 0 -var pageName -key pantaskState INIT 232 if ("$pageName" == "NULL") break 233 234 book setword pstampFinish $pageName pantaskState RUN 235 book getword pstampFinish $pageName req_id -var REQ_ID 236 book getword pstampFinish $pageName dbname -var DBNAME 237 book getword pstampFinish $pageName reqType -var REQ_TYPE 238 book getword pstampFinish $pageName name -var REQ_NAME 239 book getword pstampFinish $pageName outProduct -var PRODUCT 240 241 $run = request_finish.pl --req_id $REQ_ID --req_type $REQ_TYPE --req_name $REQ_NAME --product $PRODUCT 242 243 add_standard_args run 244 options $pageName 245 246 if ($VERBOSE > 1) 247 echo command $run 248 end 249 command $run 250 end 251 198 252 task.exit default 199 showcommand failure 253 echo request.finish.run task.exit status: $JOB_STATUS 254 process_exit pstampFinish $options:0 $JOB_STATUS 200 255 end 201 256 202 257 task.exit timeout 203 258 showcommand timeout 259 book setword pstampFinish $options:0 pantaskState TIMEOUT.run 204 260 end 205 261 end
Note:
See TracChangeset
for help on using the changeset viewer.
