Changeset 25027 for branches/pap/ippTasks/dist.pro
- Timestamp:
- Aug 7, 2009, 4:08:25 PM (17 years ago)
- Location:
- branches/pap
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippTasks/dist.pro (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap
- Property svn:mergeinfo changed
-
branches/pap/ippTasks/dist.pro
r23887 r25027 5 5 6 6 #$LOGSUBDIR = $LOGDIR/dist 7 #exec mkdir -p$LOGSUBDIR7 mkdir $LOGSUBDIR 8 8 9 9 ### Initialise the books containing the tasks to do … … 14 14 $distToProcess_DB = 0 15 15 $distToAdvance_DB = 0 16 $distQueue_DB = 0 16 17 17 18 ### Check status of tasks … … 41 42 active true 42 43 end 44 task dist.queueruns 45 # We aren't ready to run this task yet. It will queue much too much 46 # active true 47 active false 48 end 43 49 end 44 50 macro dist.off … … 53 59 end 54 60 task dist.advance.run 61 active false 62 end 63 task dist.queueruns 55 64 active false 56 65 end … … 80 89 end 81 90 add_poll_args run 91 add_poll_labels run 82 92 command $run 83 93 end … … 113 123 task.exec 114 124 book npages distToProcess -var N 115 if ($N == 0) break 125 if ($N == 0) 126 periods -exec 10 127 break 128 end 129 periods -exec 0.05 130 116 131 if ($NETWORK == 0) break 117 132 … … 155 170 # set.host.for.camera $CAMERA $MAGIC_ID 156 171 # set.workdir.by.camera $CAMERA $MAGIC_ID $WORKDIR_TEMPLATE $default_host WORKDIR 157 host anyhost 172 # host anyhost 173 174 175 substr $COMPONENT 0 3 COMP_HEAD 176 if ("$COMP_HEAD" == "sky") 177 set.host.for.skycell $COMPONENT 178 else 179 # assume component is a class_id, if not we will default to anyhost 180 set.host.for.camera $CAMERA $COMPONENT 181 end 182 158 183 159 184 sprintf logfile "%s/dist.%s.%s.log" $OUTDIR $DIST_ID $COMPONENT … … 211 236 end 212 237 add_poll_args run 238 add_poll_labels run 213 239 command $run 214 240 end … … 257 283 book getword distToAdvance $pageName outdir -var OUTDIR 258 284 book getword distToAdvance $pageName clean -var CLEAN 285 book getword distToAdvance $pageName dbname -var DBNAME 259 286 $EXTRA_ARGS = "" 260 287 if ("$CLEAN" == "T") … … 293 320 end 294 321 322 task dist.queueruns 323 # host local 324 325 periods -poll $RUNPOLL 326 periods -exec 30 327 periods -timeout 45 328 npending 1 329 330 active false 331 332 # stdout $LOGDIR/dist.queuruns 333 # stderr $LOGDIR/dist.queueruns 334 335 task.exec 336 $MYARGS = "" 337 # assume that we need magic unless we are running simtest 338 if ($?SIMTEST_CAMERA != 0) 339 $MYARGS = --no_magic 340 end 341 342 $run = dist_queue_runs.pl $MYARGS --stage_limit 16 --logfile $LOGDIR/dist.queueruns 343 344 if ($DB:n == 0) 345 $DBNAME = DEFAULT 346 else 347 # save the DB name for add_standard_args 348 $DBNAME = $DB:$distQueue_DB 349 $distQueue_DB ++ 350 if ($distQueue_DB >= $DB:n) set distQueue_DB = 0 351 end 352 353 host anyhost 354 355 add_standard_args run 356 357 # create the command line 358 if ($VERBOSE > 1) 359 echo command $run 360 end 361 command $run 362 end 363 364 task.exit $EXIT_SUCCESS 365 # nothing to do 366 end 367 368 # default exit status 369 task.exit default 370 showcommand failure 371 end 372 373 # operation timed out? 374 task.exit timeout 375 showcommand timeout 376 end 377 378 # operation timed out? 379 task.exit crash 380 showcommand crash 381 end 382 end
Note:
See TracChangeset
for help on using the changeset viewer.
