You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jedcunningham (via GitHub)" <gi...@apache.org> on 2024/12/04 19:27:52 UTC
Re: [PR] Prevent using `trigger_rule=TriggerRule.ALWAYS` in a dynamic mapped task [airflow]
jedcunningham commented on PR #43368:
URL: https://github.com/apache/airflow/pull/43368#issuecomment-2518383170
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...
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org