Changeset 42712 for trunk/ippTasks/addstar.pro
- Timestamp:
- Jul 18, 2024, 2:55:58 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/addstar.pro (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/addstar.pro
r41213 r42712 228 228 229 229 macro stuff 230 echo $LOADEXEC_ADD 231 echo $LOADPOLL 230 echo LOADEXEC_ADD: $LOADEXEC_ADD 231 echo LOADPOLL_ADD: $LOADPOLL_ADD 232 echo RUNEXEC_ADD: $RUNEXEC_ADD 233 echo RUNPOLL_ADD: $RUNPOLL_ADD 232 234 end 233 235 … … 249 251 $addstar_revert_DB_DF = 0 250 252 251 # $LOADEXEC_ADD = 300253 # loading time every N seconds 252 254 $LOADEXEC_ADD = 10 255 $LOADPOLL_ADD = 10 256 $RUNEXEC_ADD = 5 257 $RUNPOLL_ADD = 10 253 258 254 259 if ($?addstar_multiadd_limit == 0) set addstar_multiadd_limit = 0 … … 273 278 host local 274 279 275 periods -poll $LOADPOLL 280 periods -poll $LOADPOLL_ADD 276 281 periods -exec $LOADEXEC_ADD 277 282 periods -timeout 300 278 283 npending 1 279 284 285 date -var rundate 286 280 287 stdout NULL 281 288 stderr $LOGDIR/addstar.exp.log 282 289 283 290 task.exec 284 #if no stages defined we can 't run291 #if no stages defined we cant run 285 292 if ($ADDSTAGES:n == 0) echo "what" 286 # if ($ADDSTAGES:n == 0) break 287 $run = addtool -pendingexp 293 if ($ADDSTAGES:n == 0) break 294 $run = addtool -pendingexp -addrand 295 296 book npages addPendingExp -var addPendingExp_Npage 297 if ($addPendingExp_Npage > 10000) 298 $POLL_LIMIT = 1 299 echo $addPendingExp_Npage $rundate 300 end 288 301 289 302 #option $ADDSTAGES:$addstar_stages_DB … … 301 314 add_poll_args run 302 315 add_poll_labels run 303 echo $run 316 echo $run $rundate 304 317 command $run 305 318 end … … 348 361 349 362 task.exec 350 #if no stages defined we can 't run363 #if no stages defined we cant run 351 364 if ($MULTIADDSTAGES:n == 0) echo "no stages for addstar.multi, use add.addstagesmulti" 352 365 # if ($MULTIADDSTAGES:n == 0) break … … 400 413 # run the addstar script on pending exposures 401 414 task addstar.exp.run 402 periods -poll $RUNPOLL 403 periods -exec $RUNEXEC 415 periods -poll $RUNPOLL_ADD 416 periods -exec $RUNEXEC_ADD 404 417 periods -timeout 1200 405 418 406 419 ## we want only a single outstanding addstar job. 407 420 # host local 408 npending 100 421 npending 1000 409 422 410 423 task.exec 424 # if we are unable to run the 'exec', use a long retry time 425 periods -exec $RUNEXEC_ADD 426 411 427 book npages addPendingExp -var N 412 428 if ($N == 0) break … … 433 449 book getword addPendingExp $pageName image_only -var IMAGE_ONLY 434 450 book getword addPendingExp $pageName dbname -var DBNAME 435 book getword addPendingExp $pageName dvodbhost -var DVODBHOST436 437 host -required $ DVODBHOST451 book getword addPendingExp $pageName addrun_host -var ADDRUN_HOST 452 453 host -required $ADDRUN_HOST 438 454 439 455 # specify choice of remote host based on camera and chip (class_id) … … 480 496 stderr $LOGDIR/addstar.exp.log 481 497 482 $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output -- dvodbhost $DVODBHOST498 $run = addstar_run.pl --add_id $ADD_ID --camera $CAMERA --dvodb $DVODB --stage $STAGE --stageroot $STAGEROOT --outroot $outroot --redirect-output --addrun_host $ADDRUN_HOST 483 499 if ("$REDUCTION" != "NULL") 484 500 $run = $run --reduction $REDUCTION … … 501 517 end 502 518 if ("$STAGE" == "fullforce_summary") 503 # This shouldn 't need a stage_extra1, as there are no subcomponents to the ff summary.519 # This shouldnt need a stage_extra1, as there are no subcomponents to the ff summary. 504 520 $run = $run --stage_id $STAGE_ID 505 521 end 506 507 522 508 523 … … 528 543 echo command $run 529 544 end 545 periods -exec 0.1 530 546 command $run 531 547 end
Note:
See TracChangeset
for help on using the changeset viewer.
