Changeset 19074
- Timestamp:
- Aug 14, 2008, 3:27:43 PM (18 years ago)
- File:
-
- 1 edited
-
branches/eam_branch_20080806/ippTasks/diff.pro (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080806/ippTasks/diff.pro
r18945 r19074 8 8 check.globals 9 9 10 $LOGSUBDIR = $LOGDIR/diff11 exec mkdir -p $LOGSUBDIR12 13 10 ### Initialise the books containing the tasks to do 14 11 book init diffSkyfile 12 book init diffCleanup 15 13 16 14 ### Database lists … … 74 72 75 73 stdout NULL 76 stderr $LOG SUBDIR/diff.skycell.log74 stderr $LOGDIR/diff.skycell.log 77 75 78 76 task.exec … … 137 135 138 136 ### XXX Instead of setting these by camera, need to set by skycell_id 137 ### XXX change these to use the --redirect scheme 139 138 # set.host.for.camera $CAMERA $DIFF_ID 140 139 # set.workdir.by.camera $CAMERA $DIFF_ID $WORKDIR_TEMPLATE $default_host WORKDIR … … 203 202 else 204 203 # save the DB name for the exit tasks 205 option $DB:$diff _cleanup_DB206 command difftool -pendingcleanuprun -limit 20 -dbname $DB:$diff _cleanup_DB207 $diff _cleanup_DB ++208 if ($diff _cleanup_DB >= $DB:n) set diff_cleanup_DB = 0204 option $DB:$diffCleanup_DB 205 command difftool -pendingcleanuprun -limit 20 -dbname $DB:$diffCleanup_DB 206 $diffCleanup_DB ++ 207 if ($diffCleanup_DB >= $DB:n) set diffCleanup_DB = 0 209 208 end 210 209 end … … 213 212 task.exit 0 214 213 # convert 'stdout' to book format 215 ipptool2book stdout diff PendingCleanup -key diff_id -uniq -setword dbname $options:0 -setword pantaskState INIT214 ipptool2book stdout diffCleanup -key diff_id -uniq -setword dbname $options:0 -setword pantaskState INIT 216 215 if ($VERBOSE > 2) 217 book listbook diff PendingCleanup216 book listbook diffCleanup 218 217 end 219 218 220 219 # delete existing entries in the appropriate pantaskStates 221 process_cleanup diff PendingCleanup220 process_cleanup diffCleanup 222 221 end 223 222 … … 241 240 242 241 task.exec 243 book npages diff PendingCleanup -var N242 book npages diffCleanup -var N 244 243 if ($N == 0) break 245 244 if ($NETWORK == 0) break 246 245 247 # look for new images in diff PendingCleanup (pantaskState == INIT)248 book getpage diff PendingCleanup 0 -var pageName -key pantaskState INIT246 # look for new images in diffCleanup (pantaskState == INIT) 247 book getpage diffCleanup 0 -var pageName -key pantaskState INIT 249 248 if ("$pageName" == "NULL") break 250 249 251 book setword diff PendingCleanup $pageName pantaskState RUN252 book getword diff PendingCleanup $pageName camera -var CAMERA253 book getword diff PendingCleanup $pageName state -var CLEANUP_MODE254 book getword diff PendingCleanup $pageName diff_id -var DIFF_ID255 book getword diff PendingCleanup $pageName dbname -var DBNAME250 book setword diffCleanup $pageName pantaskState RUN 251 book getword diffCleanup $pageName camera -var CAMERA 252 book getword diffCleanup $pageName state -var CLEANUP_MODE 253 book getword diffCleanup $pageName diff_id -var DIFF_ID 254 book getword diffCleanup $pageName dbname -var DBNAME 256 255 257 256 # specify choice of local or remote host based on camera and diff (class_id) … … 277 276 # default exit status 278 277 task.exit default 279 process_exit diff PendingCleanup $options:0 $JOB_STATUS278 process_exit diffCleanup $options:0 $JOB_STATUS 280 279 end 281 280 … … 283 282 task.exit timeout 284 283 showcommand timeout 285 book setword diff PendingCleanup $options:0 pantaskState TIMEOUT286 end 287 end 284 book setword diffCleanup $options:0 pantaskState TIMEOUT 285 end 286 end
Note:
See TracChangeset
for help on using the changeset viewer.
