MatrixManAtYrService commented on issue #22843:
URL: https://github.com/apache/airflow/issues/22843#issuecomment-1092280928
My initial feeling is that positional args on dag decorated functions should
not be interpreted as dag params, so you could do things like this:
```python3
@task
some_task(arg):
....
@task
some_other_task(arg):
....
@dag
def func(extra_step, arg=Param(6, minimum=0, maximum=10):
some_task(arg)
if extra_step:
some_other_task(art)
one_dag = func(True)
another_dag = func(False)
```
But I'm interested to hear what others think.
--
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]