-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Dataset Events not publishing when AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS enabled #1363
Comments
Hey, @nishant-gupta-sh! 👋 I'm here to help you with your bug. Let's squash it together! The issue you're experiencing seems to be related to how dataset aliases are handled when The The Given this, the problem might be in how the dataset alias is constructed or retrieved for tasks not in a TaskGroup when the alias feature is enabled. You might want to review the logic in the |
Hi @nishant-gupta-sh, which version of Cosmos are you using? You mentioned 12.1.1 in the ticket description, but the last release of Cosmos was 1.7.1. Did you recently change from executing Cosmos using I'll update our docs to make this more evident: https://astronomer.github.io/astronomer-cosmos/configuration/scheduling.html. |
Hi Tatiana, apologies, we're using 1.7.1 for Cosmos and the CeleryExecutor for the ExecutionMode. |
Hi @nishant-gupta-sh thanks for your reply and clarifying Cosmos' version. In the ticket description, you mentioned using Cosmos Why do you believe the issue may be in This is how the function astronomer-cosmos/cosmos/operators/local.py Line 168 in fdf7025
Previously, we had validated emitting datasets with Dataset Alias using Please, can you share a small example DAG illustrating the problem you're facing? Something alongside the examples we have that would allow us to reproduce the problem: |
This issue is stale because it has been open for 30 days with no activity. |
Astronomer Cosmos Version
12.1.1
dbt-core version
1.8.7
Versions of dbt adapters
No response
LoadMode
AUTOMATIC
ExecutionMode
AZURE_CONTAINER_INSTANCE
InvocationMode
None
airflow version
2.10.2
Operating System
Astronomer Deployed
If a you think it's an UI issue, what browsers are you seeing the problem on?
No response
Deployment
Astronomer
Deployment details
No response
What happened?
When setting the AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS to True, any task that we have that was previously producing dataset events and was not in a task group, stopped producing the events. I suspect there's something wrong with the following function:
astronomer-cosmos/cosmos/dataset.py
Line 7 in cfb6bf2
Relevant log output
How to reproduce
When AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS is set to true, and when using the DbtRunLocalOperator or DbtSnapshotOperator, dataset events were no longer being published. Dataset events are being published however when using the DbtTaskGroup operator.
All operators successfully published dataset events when AIRFLOW__COSMOS__ENABLE_DATASET_ALIAS was set to False
Anything else :)?
No response
Are you willing to submit PR?
Contact Details
[email protected]
The text was updated successfully, but these errors were encountered: