Scheduler Crashes When Passing Invalid Value to Argument in default_args #40187
Labels
area:core
area:Scheduler
including HA (high availability) scheduler
good first issue
kind:bug
This is a clearly a bug
Apache Airflow version
2.9.2
If "Other Airflow 2 version" selected, which one?
No response
What happened?
When an invalid value is passed to any argument in default_args, such as passing a string value "2" to max_active_tis_per_dag which expects an integer, the scheduler crashes. The error message received is:
What you think should happen instead?
Instead of crashing the scheduler, Airflow should throw an import error on the Airflow UI for the problematic DAG. This would help in identifying the problematic DAG easily. The current behaviour makes it difficult to identify which DAG caused the issue, especially when managing hundreds of DAGs. This small mistake in DAG can also cause an outage in the production environment.
How to reproduce
Operating System
Linux ad25902d8cef 6.7.12-orbstack-00201-g2ddb8f197a46 #1 SMP Tue May 21 04:38:26 UTC 2024 aarch64 GNU/Linux
Versions of Apache Airflow Providers
No response
Deployment
Astronomer
Deployment details
No response
Anything else?
This problem occurs every time an invalid value is passed to an argument in default_args.
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: