-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
DAG Import Errors remain in the WebUI even after fix error #39762
Comments
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. |
I can't reproduce this. |
Sorry, it's not related to all errors, only to ValidationError with pydantic for me Seems it happenned after upgrate pydantic to 2.+ version |
Data remains in |
Check on both 2.9.0 and 2.9.1 by use sample docker compose With this DAG it worked as expected from __future__ import annotations
from datetime import datetime, timezone
from airflow.decorators import task
from airflow.models.dag import DAG
raise RuntimeError("Boooom!")
START_DATE = datetime(2024, 2, 29, tzinfo=timezone.utc)
with DAG("issue_39762", schedule="@once", tags=["issue", "39762", "dag-import"], start_date=START_DATE):
@task
def do_nothing(): ...
do_nothing() Gone from both DB and UI as soon as I comment out / remove Expected to see some examples and more information about your configurations |
The root cause was that we have our own DagFactory and did not use the processor_subdir parameter in errors.ImportError since we have one DAG-processor, so we specified the folder with dags as processor_subdir and the problem was solved. |
Apache Airflow version
2.9.1
If "Other Airflow 2 version" selected, which one?
2.9.0, 2.9.1
What happened?
DAG Import Errors remain in the WebUI even after fix error
What you think should happen instead?
DAG Import Errors will disappear in WebUI after fix errors
How to reproduce
Operating System
MacOS or Linux
Versions of Apache Airflow Providers
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else?
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: