your commit message
This commit is contained in:
@@ -1895,7 +1895,7 @@ class PipelineExecutor:
|
||||
if row_args:
|
||||
selected_row_args.extend(row_args)
|
||||
|
||||
if selected_row_args:
|
||||
if selected_row_args and not stages:
|
||||
if isinstance(source_cmd, list):
|
||||
cmd_list: List[str] = [str(x) for x in source_cmd if x is not None]
|
||||
elif isinstance(source_cmd, str):
|
||||
@@ -1914,11 +1914,7 @@ class PipelineExecutor:
|
||||
# as the positional URL and avoid this class of parsing errors.
|
||||
expanded_stage: List[str] = cmd_list + selected_row_args + source_args
|
||||
|
||||
if first_stage_had_extra_args and stages:
|
||||
expanded_stage += stages[0]
|
||||
stages[0] = expanded_stage
|
||||
else:
|
||||
stages.insert(0, expanded_stage)
|
||||
stages.insert(0, expanded_stage)
|
||||
|
||||
if pipeline_session and worker_manager:
|
||||
try:
|
||||
@@ -1928,6 +1924,8 @@ class PipelineExecutor:
|
||||
)
|
||||
except Exception:
|
||||
logger.exception("Failed to record pipeline log step for @N expansion (pipeline_session=%r)", getattr(pipeline_session, 'worker_id', None))
|
||||
elif selected_row_args and stages:
|
||||
debug("@N: skipping source command expansion because downstream stages exist")
|
||||
|
||||
stage_table = None
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user