File tree 1 file changed +4
-1
lines changed
sdks/python/apache_beam/runners/direct
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -146,10 +146,11 @@ def visit_transform(self, applied_ptransform):
146
146
if timer .time_domain == TimeDomain .REAL_TIME :
147
147
self .supported_by_prism_runner = False
148
148
149
+ # Use BundleBasedDirectRunner if other runners are missing needed features.
149
150
runner = BundleBasedDirectRunner ()
150
151
151
152
# Check whether all transforms used in the pipeline are supported by the
152
- # FnApiRunner, and the pipeline was not meant to be run as streaming.
153
+ # PrismRunner
153
154
if _PrismRunnerSupportVisitor ().accept (pipeline ):
154
155
_LOGGER .info ('Running pipeline with PrismRunner.' )
155
156
from apache_beam .runners .portability import prism_runner
@@ -173,6 +174,8 @@ def visit_transform(self, applied_ptransform):
173
174
_LOGGER .info ('Falling back to DirectRunner' )
174
175
runner = BundleBasedDirectRunner ()
175
176
177
+ # Check whether all transforms used in the pipeline are supported by the
178
+ # FnApiRunner, and the pipeline was not meant to be run as streaming.
176
179
if _FnApiRunnerSupportVisitor ().accept (pipeline ):
177
180
from apache_beam .portability .api import beam_provision_api_pb2
178
181
from apache_beam .runners .portability .fn_api_runner import fn_runner
You can’t perform that action at this time.
0 commit comments