@task_group returns int, but it appears in @task as TaskGroup #15708
Labels
kind:bug
This is a clearly a bug
priority:high
High priority bug that should be patched quickly but does not require immediate new release
Milestone
Apache Airflow version
13faa69
Environment
pip install -e .
The DAG
What happened:
print_it
had no predecessors and receives<airflow.utils.task_group.TaskGroup object at 0x128921940>
What you expected to happen:
print_it
comes aftertrivial_group.add_one
and receives2
The caller ends up with the task group itself, equivalent in the traditional api to
tg_ref
in:This interrupts the ability to continue using the Task Flow api because passing it into a function annotated with
@task
fails to register the dependency with whatever magic gets it out of xcom and adds edges to the dag.To Replicate
The text was updated successfully, but these errors were encountered: