Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions sdks/python/apache_beam/runners/direct/direct_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ def accept(self, pipeline, is_interactive):
self.supported_by_prism_runner = False
else:
pipeline.visit(self)
# Avoid circular import
from apache_beam.pipeline import ExternalTransformFinder
if ExternalTransformFinder.contains_external_transforms(pipeline):
# TODO(https://github.com/apache/beam/issues/33623): Prism currently
# seems to not be able to consistently bring up external transforms.
# It does sometimes, but at volume suites start to fail. We will try
# to enable this in a future release.
self.supported_by_prism_runner = False
return self.supported_by_prism_runner

def visit_transform(self, applied_ptransform):
Expand All @@ -145,12 +153,6 @@ def visit_transform(self, applied_ptransform):
# being used.
if isinstance(transform, TestStream):
self.supported_by_prism_runner = False
if isinstance(transform, beam.ExternalTransform):
# TODO(https://github.com/apache/beam/issues/33623): Prism currently
# seems to not be able to consistently bring up external transforms.
# It does sometimes, but at volume suites start to fail. We will try
# to enable this in a future release.
self.supported_by_prism_runner = False
if isinstance(transform, beam.ParDo):
dofn = transform.dofn
# TODO(https://github.com/apache/beam/issues/33623): Prism currently
Expand Down
Loading