Skip to content

Commit

Permalink
Fixed __has_dependent_tasks
Browse files Browse the repository at this point in the history
Signed-off-by: hbelmiro <[email protected]>
  • Loading branch information
hbelmiro committed Jul 18, 2024
1 parent ba14f74 commit 2ede4cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions sdk/python/kfp/dsl/tasks_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,12 @@ def __has_dependent_tasks(self) -> bool:
if not self.exit_task.inputs:
return False

return any(
isinstance(task_input, PipelineParameterChannel)
for task_input in self.exit_task.inputs.values())
for task_input in self.exit_task.inputs.values():
if isinstance(
task_input,
PipelineParameterChannel) and task_input.task is not None:
return True
return False


class ConditionBranches(TasksGroup):
Expand Down

0 comments on commit 2ede4cb

Please sign in to comment.