File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -173,8 +173,14 @@ def __init__(
173173 if options is not None :
174174 if isinstance (options , PipelineOptions ):
175175 # Make a deep copy of options since they could be overwritten in later
176- # steps.
176+ # steps. However, the 'runner' object within 'options' is excluded from
177+ # the deep copy (it is shallow copied) due to potential issues with deep
178+ # copying specific runner instances, such as FlumeRunner.
179+ saved_runner = options .view_as (StandardOptions ).runner
180+ options .view_as (StandardOptions ).runner = None
177181 self ._options = copy .deepcopy (options )
182+ self ._options .view_as (StandardOptions ).runner = saved_runner
183+ options .view_as (StandardOptions ).runner = saved_runner
178184 else :
179185 raise ValueError (
180186 'Parameter options, if specified, must be of type PipelineOptions. '
You can’t perform that action at this time.
0 commit comments