Changeset 27840 for branches/simtest_nebulous_branches/ippTasks/publish.pro
- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/publish.pro (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippTasks/publish.pro
r24707 r27840 24 24 active true 25 25 end 26 task publish.revert 27 active true 28 end 26 29 end 27 30 … … 34 37 end 35 38 task publish.run 39 active false 40 end 41 task publish.revert 42 active false 43 end 44 end 45 46 47 macro publish.revert.on 48 task publish.revert 49 active true 50 end 51 end 52 53 macro publish.revert.off 54 task publish.revert 36 55 active false 37 56 end … … 42 61 $publish_trigger_DB = 0 43 62 $publish_load_DB = 0 63 $publish_revert_DB = 0 44 64 45 65 task publish.trigger … … 99 119 stderr $LOGDIR/publish.load.log 100 120 121 # this query should probably be label-based... 101 122 task.exec 102 123 $run = pubtool -pending … … 161 182 book getword publishRun $pageName stage -var STAGE 162 183 book getword publishRun $pageName stage_id -var STAGE_ID 163 book getword publishRun $pageName exp_id -var EXP_ID164 184 book getword publishRun $pageName dbname -var DBNAME 165 185 … … 170 190 strsub $WORKDIR_TEMPLATE @HOST@ $default_host -var WORKDIR 171 191 172 $run = publish_file.pl --pub_id $PUB_ID -- exp_id $EXP_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --redirect-output192 $run = publish_file.pl --pub_id $PUB_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --redirect-output 173 193 add_standard_args run 174 194 … … 201 221 end 202 222 end 223 224 225 task publish.revert 226 host local 227 228 periods -poll 5.0 229 periods -exec 60.0 230 periods -timeout 120.0 231 npending 1 232 233 stdout NULL 234 stderr $LOGDIR/revert.log 235 236 task.exec 237 if ($LABEL:n == 0) break 238 $run = pubtool -revert 239 if ($DB:n == 0) 240 option DEFAULT 241 else 242 # save the DB name for the exit tasks 243 option $DB:$publish_revert_DB 244 $run = $run -dbname $DB:$publish_revert_DB 245 $publish_revert_DB ++ 246 if ($publish_revert_DB >= $DB:n) set publish_revert_DB = 0 247 end 248 add_poll_labels run 249 command $run 250 end 251 252 # success 253 task.exit 0 254 end 255 256 # locked list 257 task.exit default 258 showcommand failure 259 end 260 261 task.exit crash 262 showcommand crash 263 end 264 265 # operation times out? 266 task.exit timeout 267 showcommand timeout 268 end 269 end
Note:
See TracChangeset
for help on using the changeset viewer.
