You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per users' feedback in the Airflow Debugging Survey 2024, 48.3% of respondents chose early issue detection during execution as one of their top 2 choices.
Use case/motivation
Goal of this issue:
Enhance early detection of DAG issues to minimize dev time
Some sort of static analysis similar to Ruff checks for DAGs
Runtime analysis of DAGs if feasible can also be done to save dev time
omkar-foss
changed the title
Explore and add static checks for DAGs for early detect of common issues
Explore and add static checks for DAGs for early detection of common issues
Oct 18, 2024
Inspired by above article, may be we can have commands like airflow dag lint <dagname>.py for checking common DAGs issues and airflow dag grade <dagname>.py for grading DAGs based on their code quality.
Love that idea. We could even had some way of checking for "best practices" - like not using DB while parsing etc. This might also be then used as part of the upgrade-check mechanism that we are planning for Airflow 2-> 3 migration - see #41641 cc: @Lee-W
I feel it's a bit different. 🤔 But for not using DB while parsing, that's something we should check in the upgrade check. But the "best practices" thing would probably be something else. Probably integrating with ruff or building our own linter would be better.
Description
As per users' feedback in the Airflow Debugging Survey 2024, 48.3% of respondents chose early issue detection during execution as one of their top 2 choices.
Use case/motivation
Goal of this issue:
Related issues
Parent Issue: #40975
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: