Changeset 24596 for trunk/ippTasks/fake.pro
- Timestamp:
- Jun 25, 2009, 4:33:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/fake.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/fake.pro
r24595 r24596 7 7 8 8 book init fakePendingImfile 9 #book init fakePendingCleanup10 9 11 10 macro fake.status 12 11 book listbook fakePendingImfile 13 # book listbook fakePendingCleanup14 12 end 15 13 16 14 macro fake.reset 17 15 book init fakePendingImfile 18 # book init fakePendingCleanup19 16 end 20 17 … … 43 40 end 44 41 45 # macro fake.cleanup.on46 # task fake.cleanup.load47 # active true48 # end49 # task fake.cleanup.run50 # active true51 # end52 # end53 54 # macro fake.cleanup.off55 # task fake.cleanup.load56 # active false57 # end58 # task fake.cleanup.run59 # active false60 # end61 # end62 63 42 # this variable will cycle through the known database names 64 43 $fakeImfile_DB = 0 44 $fake_revert_DB = 0 65 45 66 46 # select images ready for fake analysis … … 249 229 end 250 230 251 # # this variable will cycle through the known database names 252 # $fake_cleanup_DB = 0 253 254 # # select images ready for fake analysis 255 # # new entries are added to fakePendingImfile 256 # # skip already-present entries 257 # task fake.cleanup.load 258 # host local 259 260 # periods -poll $LOADPOLL 261 # periods -exec $LOADEXEC 262 # periods -timeout 30 263 # npending 1 264 # active false 265 266 # stdout NULL 267 # stderr $LOGDIR/fake.cleanup.log 268 269 # task.exec 270 # if ($LABEL:n == 0) break 271 # $run = faketool -pendingcleanuprun 272 # if ($DB:n == 0) 273 # option DEFAULT 274 # command 275 # else 276 # # save the DB name for the exit tasks 277 # option $DB:$fake_cleanup_DB 278 # $run = $run -dbname $DB:$fake_cleanup_DB 279 # $fake_cleanup_DB ++ 280 # if ($fake_cleanup_DB >= $DB:n) set fake_cleanup_DB = 0 281 # end 282 # add_poll_args run 283 # add_poll_labels run 284 # command $run 285 # end 286 287 # # success 288 # task.exit 0 289 # # convert 'stdout' to book format 290 # ipptool2book stdout fakePendingCleanup -key fake_id -uniq -setword dbname $options:0 -setword pantaskState INIT 291 # if ($VERBOSE > 2) 292 # book listbook fakePendingCleanup 293 # end 294 295 # # delete existing entries in the appropriate pantaskStates 296 # process_cleanup fakePendingCleanup 297 # end 298 299 # # locked list 300 # task.exit default 301 # showcommand failure 302 # end 303 304 # task.exit crash 305 # showcommand crash 306 # end 307 308 # # operation times out? 309 # task.exit timeout 310 # showcommand timeout 311 # end 312 # end 313 314 # # run the ipp_cleanup.pl script on pending images 315 # task fake.cleanup.run 316 # periods -poll $RUNPOLL 317 # periods -exec $RUNEXEC 318 # periods -timeout 60 319 # active false 320 321 # task.exec 322 # book npages fakePendingCleanup -var N 323 # if ($N == 0) break 324 # if ($NETWORK == 0) break 325 326 # # look for new images in fakePendingCleanup (pantaskState == INIT) 327 # book getpage fakePendingCleanup 0 -var pageName -key pantaskState INIT 328 # if ("$pageName" == "NULL") break 329 330 # book setword fakePendingCleanup $pageName pantaskState RUN 331 # book getword fakePendingCleanup $pageName camera -var CAMERA 332 # book getword fakePendingCleanup $pageName state -var CLEANUP_MODE 333 # book getword fakePendingCleanup $pageName fake_id -var FAKE_ID 334 # book getword fakePendingCleanup $pageName dbname -var DBNAME 335 336 # # specify choice of local or remote host based on camera and fake (class_id) 337 # set.host.for.camera $CAMERA FPA 338 339 # stdout $LOGDIR/fake.cleanup.log 340 # stderr $LOGDIR/fake.cleanup.log 341 342 # # XXX is everything listed here needed? 343 # $run = ipp_cleanup.pl --stage fake --stage_id $FAKE_ID --camera $CAMERA --mode $CLEANUP_MODE 344 # add_standard_args run 345 346 # # save the pageName for future reference below 347 # options $pageName 348 349 # # create the command line 350 # if ($VERBOSE > 1) 351 # echo command $run 352 # end 353 # command $run 354 # end 355 356 # # default exit status 357 # task.exit default 358 # process_exit fakePendingCleanup $options:0 $JOB_STATUS 359 # end 360 361 # task.exit crash 362 # showcommand crash 363 # book setword fakePendingCleanup $options:0 pantaskState CRASH 364 # end 365 366 # # operation timed out? 367 # task.exit timeout 368 # showcommand timeout 369 # book setword fakePendingCleanup $options:0 pantaskState TIMEOUT 370 # end 371 # end 231 task fake.revert 232 host local 233 234 periods -poll 5.0 235 periods -exec 60.0 236 periods -timeout 120.0 237 npending 1 238 239 stdout NULL 240 stderr $LOGDIR/revert.log 241 242 task.exec 243 if ($LABEL:n == 0) break 244 $run = faketool -revertprocessedimfile 245 if ($DB:n == 0) 246 option DEFAULT 247 else 248 # save the DB name for the exit tasks 249 option $DB:$fake_revert_DB 250 $run = $run -dbname $DB:$fake_revert_DB 251 $fake_revert_DB ++ 252 if ($fake_revert_DB >= $DB:n) set fake_revert_DB = 0 253 end 254 add_poll_labels run 255 command $run 256 end 257 258 # success 259 task.exit 0 260 end 261 262 # locked list 263 task.exit default 264 showcommand failure 265 end 266 267 task.exit crash 268 showcommand crash 269 end 270 271 # operation times out? 272 task.exit timeout 273 showcommand timeout 274 end 275 end
Note:
See TracChangeset
for help on using the changeset viewer.
