shahar1 commented on PR #43368:
URL: https://github.com/apache/airflow/pull/43368#issuecomment-2523810891
> So it does work if you use static list to expand:
>
> ```python
> @task(trigger_rule="always")
> def hello(input):
> print(f"Hello, {input}")
>
> hello.expand(input=["world", "moon"])
> ```
>
> Granted, not sure it matters. I question the value of "always" anyway -
there is no point in having any upstream if it's just going to run right away
anyways, right? Just use a root task...
That's correct - it only applies for dynamic task mappings, where the
`input` value is another operator (that's the actual check that I added).
As Elad stated, there could be some cases where `always` might be useful.
However, there's plenty of work to do in the Trigger Rule area, I'll try to
lead it when I have the time.
--
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]