Changeset 24596 for trunk/ippTasks/camera.pro
- Timestamp:
- Jun 25, 2009, 4:33:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/camera.pro (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/camera.pro
r24595 r24596 7 7 8 8 book init camPendingExp 9 #book init camPendingCleanup10 9 11 10 macro camera.status 12 11 book listbook camPendingExp 13 # book listbook camPendingCleanup14 12 end 15 13 16 14 macro camera.reset 17 15 book init camPendingExp 18 # book init camPendingCleanup19 16 end 20 17 … … 37 34 end 38 35 39 # macro camera.cleanup.on40 # task camera.cleanup.load41 # active true42 # end43 # task camera.cleanup.run44 # active true45 # end46 # end47 48 # macro camera.cleanup.off49 # task camera.cleanup.load50 # active false51 # end52 # task camera.cleanup.run53 # active false54 # end55 # end56 57 36 # this variable will cycle through the known database names 58 37 $camera_DB = 0 38 $camera_revert_DB = 0 59 39 60 40 # select images ready for camera analysis … … 199 179 end 200 180 201 # # this variable will cycle through the known database names 202 # $camera_cleanup_DB = 0 203 204 # # select images ready for cam analysis 205 # # new entries are added to camPendingImfile 206 # # skip already-present entries 207 # task camera.cleanup.load 208 # host local 209 210 # periods -poll $LOADPOLL 211 # periods -exec $LOADEXEC 212 # periods -timeout 30 213 # npending 1 214 # active false 215 216 # stdout NULL 217 # stderr $LOGDIR/camera.cleanup.log 218 219 # task.exec 220 # if ($LABEL:n == 0) break 221 # $run = camtool -pendingcleanuprun 222 # if ($DB:n == 0) 223 # option DEFAULT 224 # else 225 # # save the DB name for the exit tasks 226 # option $DB:$camera_cleanup_DB 227 # $run = $run -dbname $DB:$camera_cleanup_DB 228 # $camera_cleanup_DB ++ 229 # if ($camera_cleanup_DB >= $DB:n) set camera_cleanup_DB = 0 230 # end 231 # add_poll_args run 232 # add_poll_labels run 233 # command $run 234 # end 235 236 # # success 237 # task.exit 0 238 # # convert 'stdout' to book format 239 # ipptool2book stdout camPendingCleanup -key cam_id -uniq -setword dbname $options:0 -setword pantaskState INIT 240 # if ($VERBOSE > 2) 241 # book listbook camPendingCleanup 242 # end 243 244 # # delete existing entries in the appropriate pantaskStates 245 # process_cleanup camPendingCleanup 246 # end 247 248 # # locked list 249 # task.exit default 250 # showcommand failure 251 # end 252 253 # task.exit crash 254 # showcommand crash 255 # end 256 257 # # operation times out? 258 # task.exit timeout 259 # showcommand timeout 260 # end 261 # end 262 263 # # run the ipp_cleanup.pl script on pending images 264 # task camera.cleanup.run 265 # periods -poll $RUNPOLL 266 # periods -exec $RUNEXEC 267 # periods -timeout 60 268 # active false 269 270 # task.exec 271 # book npages camPendingCleanup -var N 272 # if ($N == 0) break 273 # if ($NETWORK == 0) break 274 275 # # look for new images in camPendingCleanup (pantaskState == INIT) 276 # book getpage camPendingCleanup 0 -var pageName -key pantaskState INIT 277 # if ("$pageName" == "NULL") break 278 279 # book setword camPendingCleanup $pageName pantaskState RUN 280 # book getword camPendingCleanup $pageName camera -var CAMERA 281 # book getword camPendingCleanup $pageName state -var CLEANUP_MODE 282 # book getword camPendingCleanup $pageName cam_id -var CAM_ID 283 # book getword camPendingCleanup $pageName dbname -var DBNAME 284 285 # # specify choice of local or remote host based on camera and cam (class_id) 286 # set.host.for.camera $CAMERA FPA 287 288 # stdout $LOGDIR/camera.cleanup.log 289 # stderr $LOGDIR/camera.cleanup.log 290 291 # # XXX is everything listed here needed? 292 # $run = ipp_cleanup.pl --stage camera --stage_id $CAM_ID --camera $CAMERA --mode $CLEANUP_MODE 293 # add_standard_args run 294 295 # # save the pageName for future reference below 296 # options $pageName 297 298 # # create the command line 299 # if ($VERBOSE > 1) 300 # echo command $run 301 # end 302 # command $run 303 # end 304 305 # # default exit status 306 # task.exit default 307 # process_exit camPendingCleanup $options:0 $JOB_STATUS 308 # end 309 310 # task.exit crash 311 # showcommand crash 312 # book setword camPendingCleanup $options:0 pantaskState CRASH 313 # end 314 315 # # operation timed out? 316 # task.exit timeout 317 # showcommand timeout 318 # book setword camPendingCleanup $options:0 pantaskState TIMEOUT 319 # end 320 # end 181 task camera.revert 182 host local 183 184 periods -poll 5.0 185 periods -exec 60.0 186 periods -timeout 120.0 187 npending 1 188 189 stdout NULL 190 stderr $LOGDIR/revert.log 191 192 task.exec 193 if ($LABEL:n == 0) break 194 $run = camtool -revertprocessedexp 195 if ($DB:n == 0) 196 option DEFAULT 197 else 198 # save the DB name for the exit tasks 199 option $DB:$camera_revert_DB 200 $run = $run -dbname $DB:$camera_revert_DB 201 $camera_revert_DB ++ 202 if ($camera_revert_DB >= $DB:n) set camera_revert_DB = 0 203 end 204 add_poll_labels run 205 command $run 206 end 207 208 # success 209 task.exit 0 210 end 211 212 # locked list 213 task.exit default 214 showcommand failure 215 end 216 217 task.exit crash 218 showcommand crash 219 end 220 221 # operation times out? 222 task.exit timeout 223 showcommand timeout 224 end 225 end
Note:
See TracChangeset
for help on using the changeset viewer.
