uranusjr commented on PR #22941:
URL: https://github.com/apache/airflow/pull/22941#issuecomment-1098821106
The difference between the use case here and what Josh proposed is that
`hello` _cannot_ be decorated.
This works:
```python
def hello(name):
print("hello", name)
task(hello, task_id="something_else")(name="is there anybody out there?")
```
But this does not
```python
@task # <=== This.
def hello(name):
print("hello", name)
task(hello, task_id="something_else")(name="is there anybody out there?")
```
--
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]