Changeset 30489 for trunk/ippTasks/dist.pro
- Timestamp:
- Feb 3, 2011, 2:51:02 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/ippTasks/dist.pro (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippTasks/dist.pro
r30436 r30489 95 95 end 96 96 97 # This is now only used if we are not using a nebulous outroot 97 98 macro get.host.for.component 98 99 if ($0 != 3) … … 122 123 end 123 124 125 # This is now only used if we are not using a nebulous outroot 124 126 macro set.dist.workdir.by.component 125 127 if ($0 != 5) … … 139 141 book getword ipphosts distribution count -var count 140 142 if ("$count" == "NULL") 141 echo "ERROR: distributi n hosts list is empty"143 echo "ERROR: distribution hosts list is empty" 142 144 break 143 145 end … … 289 291 end 290 292 291 292 set.dist.workdir.by.component $DIST_STAGE_ID $COMPONENT $OUTDIR_TEMPLATE OUTDIR293 if ("$OUTDIR" == "NULL")294 echo ERROR failed to set workdir for $COMPONENT295 break296 end297 298 293 substr $COMPONENT 0 3 COMP_HEAD 299 294 if ("$COMP_HEAD" == "sky") 300 295 set.host.for.skycell $COMPONENT 296 set.workdir.by.skycell $COMPONENT $OUTDIR_TEMPLATE $default_host OUTDIR 301 297 else 302 # assume component is a class_id, if not we will default to anyhost 298 # assume component is a class_id, if it is not we will default to 299 # host "anyhost" 300 # and volume "any" 303 301 set.host.for.camera $CAMERA $COMPONENT 302 set.workdir.by.camera $CAMERA $COMPONENT $OUTDIR_TEMPLATE $default_host OUTDIR 303 end 304 305 if ("$OUTDIR" == "NULL") 306 echo ERROR failed to set workdir for $COMPONENT 307 break 304 308 end 305 309 306 310 sprintf logfile "%s/dist.%s.%s.log" $OUTDIR $DIST_ID $COMPONENT 307 # stdout $logfile308 # stderr $logfile309 311 310 312 $run = dist_component.pl --dist_id $DIST_ID --camera $CAMERA --stage $DIST_STAGE --stage_id $DIST_STAGE_ID --component $COMPONENT --path_base $PATH_BASE --chip_path_base $CHIP_PATH_BASE --state $STATE --data_state $DATA_STATE $EXTRA_ARGS --outdir $OUTDIR --logfile $logfile … … 401 403 book getpage distToAdvance 0 -var pageName -key pantaskState INIT 402 404 if ("$pageName" == "NULL") break 405 406 # XXX the sql for disttool -toadvance does not include the camera: 407 # hack around this for now 408 $CAMERA = GPC1 403 409 404 410 book setword distToAdvance $pageName pantaskState RUN … … 414 420 end 415 421 416 host anyhost 417 418 # using $DIST_ID as the "component" works fine here since we only look 419 # at the last two digits. But make sure that there 2 digits 420 $fake_component = $STAGE_ID + 10 421 set.dist.workdir.by.component $fake_component "exposure" $OUTDIR_TEMPLATE OUTDIR 422 substr $OUTDIR_TEMPLATE 0 3 SCHEME 423 if ("$SCHEME" == "neb") 424 # XXX This does not work if workdir is not in nebulous 425 # and $default_host == "any" because /data/any does not exist 426 # use "dummy" as component. Result will be 'any' 427 # set.workdir.by.camera $CAMERA dummy $OUTDIR_TEMPLATE $default_host OUTDIR 428 set.workdir.by.camera GPC1 dummy $OUTDIR_TEMPLATE $default_host OUTDIR 429 else 430 # using $DIST_ID as the "component" works fine here since we only look 431 # at the last two digits. But make sure that there 2 digits 432 $fake_component = $STAGE_ID + 10 433 set.dist.workdir.by.component $fake_component "exposure" $OUTDIR_TEMPLATE OUTDIR 434 end 435 422 436 if ("$OUTDIR" == "NULL") 423 437 echo ERROR failed to set workdir for $DIST_ID 424 438 break 425 439 end 440 host anyhost 426 441 427 442 sprintf logfile "%s/dist.advance.%s.log" $OUTDIR $DIST_ID 428 # stdout $logfile 429 # stderr $logfile 430 431 $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --outdir $OUTDIR $EXTRA_ARGS --logfile $logfile 443 444 $run = dist_advancerun.pl --dist_id $DIST_ID --stage $STAGE --stage_id $STAGE_ID --camera $CAMERA --outdir $OUTDIR $EXTRA_ARGS --logfile $logfile 432 445 add_standard_args run 433 446
Note:
See TracChangeset
for help on using the changeset viewer.
