You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "SCrocky (via GitHub)" <gi...@apache.org> on 2025/10/17 01:58:09 UTC
[I] Asset Event trigger attribution is misleading [airflow]
SCrocky opened a new issue, #56749:
URL: https://github.com/apache/airflow/issues/56749
### Apache Airflow version
3.1.0
### If "Other Airflow 2/3 version" selected, which one?
_No response_
### What happened?
When triggering a DAG via Asset Events, one of three things can happen:
1. A single Asset Event triggers a DAG Run
2. Multiple Asset Events trigger a single DAG Run
3. Asset Events that haven't triggered a DAG Run, but are older than the last run are silently ignored
In this example:

The consumer DAG runs twice.
It consumes 1 Asset Event on the first run, two on the second, and stops running.
However if we look at the Asset Events:

We see there are 5 Asset Events, and 3 of them have "triggered" DAG Runs.
This is misleading as it makes the user believe there should be 3 DAG Runs, not 2.
### What you think should happen instead?
I think we should add the following changes in the Asset UI page (and the corresponding internal changes):
- `Triggered DAG Runs` should only be used on the most **recent** Asset Event that a DAG Run consumes.
- `Included in DAG Run` mention should be used for all other consumed
As for the ignored Asset Events, I see one of two possible solutions:
1. Either this is a bug, and they should trigger a DAG Run
2. Or this is a feature and they should have some sort of `silently consumed` state & label attached to them.
### How to reproduce
To reproduce simply upload the following DAGs in a brand new Airflow instance:
[check_dataset_sync.py](https://github.com/user-attachments/files/22961635/check_dataset_sync.py)
make sure to use a DB other than SQlite so you can compare the difference between `max_active_runs=1` and `max_active_runs=10`.
Then use the `airflow standalone` command.
Turn all the DAGs on. And manually trigger the `asset generator` DAG once.
### Operating System
Ubuntu 24
### Versions of Apache Airflow Providers
```
apache-airflow-providers-common-compat 1.7.3
apache-airflow-providers-common-io 1.6.2
apache-airflow-providers-common-sql 1.27.5
apache-airflow-providers-postgres 6.2.3
apache-airflow-providers-smtp 2.2.0
apache-airflow-providers-standard 1.6.0
```
### Deployment
Virtualenv installation
### Deployment details
_No response_
### Anything else?
Do not use the default SQLite Database as it cannot show the parallelism issues
### 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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Asset Event trigger attribution is misleading [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #56749:
URL: https://github.com/apache/airflow/issues/56749#issuecomment-3551092757
@SCrocky and I discussed offline and confirmed this is a real issue. I think we'll need to resolve the grouped one first
--
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
Re: [I] Asset Event trigger attribution is misleading [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun closed issue #56749: Asset Event trigger attribution is misleading
URL: https://github.com/apache/airflow/issues/56749
--
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
Re: [I] Asset Event trigger attribution is misleading [airflow]
Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #56749:
URL: https://github.com/apache/airflow/issues/56749#issuecomment-3413488897
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
--
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