RNHTTR opened a new issue, #41979:
URL: https://github.com/apache/airflow/issues/41979
### Apache Airflow version
2.10.0
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
When top-level DAG code causes a DagBag import timeout error, this will fail
silently (from a DAG author's perspective -- it will fail in the DAG processor
logs).
### What you think should happen instead?
An error banner should be shown in the Airflow UI.
### How to reproduce
```python
from datetime import datetime
from airflow.decorators import dag, task
from time import sleep
@dag(start_date=datetime(2023, 1, 1), max_active_runs=3, schedule=None,
catchup=False)
def bad_practices_dag_1():
sleep(40)
@task
def do_something():
print(f"The meaning of life, the universe, and everything is... 42.")
do_something()
bad_practices_dag_1()
```
### Operating System
n/a
### Versions of Apache Airflow Providers
_No response_
### Deployment
Astronomer
### 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]