rubenbriones opened a new issue, #29202:
URL: https://github.com/apache/airflow/issues/29202
### Apache Airflow version
2.5.1
### What happened
When modifying the trigger rule of a dynamic task mapping to ONE_SUCCESS,
the task only creates one task mapped, and not all the N mapped task that it
should create. If i leave the trigger rule to the default ALL_SUCCESS,
everything works fine.
### What you think should happen instead
I want to set the ONE_SUCCESS trigger rule so that the mapped tasks that
succeed keep executing theirs downstream tasks, no matter what other tasks have
failed.
### How to reproduce
```py
import pendulum
from airflow.decorators import dag, task
@dag(
schedule="0 0 * * MON-FRI",
start_date=pendulum.datetime(2023, 1, 1, tz="UTC"),
catchup=False,
max_active_runs=1,
)
def etl():
@task
def get_symbols():
res = [('A', 1, 111), ('B', 2, 222)]
return res
@task
def extract(symbol_info, data_interval_end=None):
# Do some work...
return symbol_info
@task(trigger_rule="one_success")
def transform(symbol_info, data_interval_end=None):
# Do some work...
return symbol_info
@task(trigger_rule="one_success")
def load(symbol_info, data_interval_end=None):
# Do some work...
return symbol_info
# DAG
symbols = get_symbols()
raw_symbols_data = extract.expand(symbol_info=symbols)
clean_symbols_data = transform.expand(symbol_info=raw_symbols_data)
load.expand(symbol_info=clean_symbols_data)
symbols_ib()
```
### Operating System
Ubuntu 20.04.5 LTS
### Versions of Apache Airflow Providers
_No response_
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]