Changeset 12113
- Timestamp:
- Feb 27, 2007, 6:19:19 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/diff.pro (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/diff.pro
r12078 r12113 2 2 3 3 ### After a difference (with associated diff_id) is defined, the difference is performed 4 ### (tasks in diff PendingSkycell).4 ### (tasks in diffSkyfile). 5 5 6 6 … … 25 25 26 26 ### Initialise the books containing the tasks to do 27 book init diff PendingSkycell27 book init diffSkyfile 28 28 29 29 ### Database lists … … 32 32 ### Check status of diffing tasks 33 33 macro diff.status 34 book listbook diff PendingSkycell34 book listbook diffSkyfile 35 35 end 36 36 37 37 ### Reset diffing tasks 38 38 macro diff.reset 39 book init diff PendingSkycell39 book init diffSkyfile 40 40 end 41 41 … … 62 62 63 63 ### Load tasks for doing the differences 64 ### Tasks are loaded into diff PendingSkycell.64 ### Tasks are loaded into diffSkyfile. 65 65 task diff.skycell.load 66 66 host local … … 90 90 task.exit 0 91 91 # convert 'stdout' to book format 92 ipptool2book stdout diff PendingSkycell-key diff_id -uniq -setword dbname $options:092 ipptool2book stdout diffSkyfile -key diff_id -uniq -setword dbname $options:0 93 93 if ($VERBOSE > 2) 94 book listbook diff PendingSkycell94 book listbook diffSkyfile 95 95 end 96 96 97 97 # delete existing entries in the appropriate states 98 process_cleanup diff PendingSkycell98 process_cleanup diffSkyfile 99 99 end 100 100 … … 111 111 112 112 ### Run tasks for calculating the diff overlaps 113 ### Tasks are taken from diff PendingSkycell.114 task diff. exp.run113 ### Tasks are taken from diffSkyfile. 114 task diff.skycell.run 115 115 periods -poll $runpoll 116 116 periods -exec $runexec … … 118 118 119 119 task.exec 120 book npages diff PendingSkycell-var N120 book npages diffSkyfile -var N 121 121 if ($N == 0) break 122 122 if ($network == 0) break 123 123 124 # look for new images in diff PendingSkycell(state == NULL)125 book getpage diff PendingSkycell0 -var pageName -key state NULL124 # look for new images in diffSkyfile (state == NULL) 125 book getpage diffSkyfile 0 -var pageName -key state NULL 126 126 if ($pageName == NULL) break 127 127 128 book setword diffPendingSkycell $pageName state RUN 129 book getword diffPendingSkycell $pageName diff_id -var DIFF_ID 130 book getword diffPendingSkycell $pageName camera -var CAMERA 131 book getword diffPendingSkycell $pageName workdir -var WORKDIR 132 book getword diffPendingSkycell $pageName dbname -var DBNAME 128 book setword diffSkyfile $pageName state RUN 129 book getword diffSkyfile $pageName diff_id -var DIFF_ID 130 book getword diffSkyfile $pageName workdir -var WORKDIR 131 book getword diffSkyfile $pageName dbname -var DBNAME 133 132 set_standard_args 134 133 … … 154 153 # create the command line 155 154 if ($VERBOSE > 1) 156 echo command diff_skycell.pl --diff_id $DIFF_ID -- camera $CAMERA --workdir $WORKDIR $ARGS155 echo command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS 157 156 end 158 command diff_skycell.pl --diff_id $DIFF_ID -- camera $CAMERA --workdir $WORKDIR $ARGS157 command diff_skycell.pl --diff_id $DIFF_ID --workdir $WORKDIR $ARGS 159 158 end 160 159 161 160 # default exit status 162 161 task.exit default 163 process_exit diff PendingSkycell$options:0 $JOB_STATUS162 process_exit diffSkyfile $options:0 $JOB_STATUS 164 163 end 165 164 … … 167 166 task.exit timeout 168 167 showcommand timeout 169 book setword diff PendingSkycell$options:0 state TIMEOUT168 book setword diffSkyfile $options:0 state TIMEOUT 170 169 end 171 170 end
Note:
See TracChangeset
for help on using the changeset viewer.
