File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
tfx/orchestration/portable Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,15 @@ def __init__(
193
193
self ._driver_operators .update (custom_driver_operators or {})
194
194
195
195
self ._executor_operator = None
196
+ # redundant line for external usage.
197
+ executor_operator = None
196
198
if executor_spec :
197
- self ._executor_operator = self ._executor_operators [type (executor_spec )](
198
- executor_spec , platform_config )
199
+ if executor_operator is None :
200
+ executor_operator = self ._executor_operators [type (executor_spec )](
201
+ executor_spec = executor_spec , platform_config = platform_config
202
+ )
203
+ self ._executor_operator = executor_operator
204
+
199
205
self ._output_resolver = outputs_utils .OutputsResolver (
200
206
pipeline_node = self ._pipeline_node ,
201
207
pipeline_info = self ._pipeline_info ,
You can’t perform that action at this time.
0 commit comments