Desdroid commented on issue #55759:
URL: https://github.com/apache/airflow/issues/55759#issuecomment-3306615563
> I could be way off here, but I haven't seen folks `return` something from
a `@task_group` before... My guess is that's the issue?
You definitely can return something from a task group. The issue is that you
can't map again (expand) over the output of a task group. Maybe that is by
design ?
I thought it was a bug because I expected the task group to be equivalent to
expanding the functions one after the other - where then I could use the output
to map again (This is also the workaround I'm using currently).
So this works (it will log the list as one):
```python
log_num(text="Got numbers: ", num=_processed_numbers)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]