Skip to content
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

[airflow] deprecated subdagoperator (AIR304) #14628

Conversation

abhishekbhakat
Copy link

Summary
Airflow 3.0 deprecates the SubDagOperator in favor of TaskGroups. SubDagOperator has been known to cause deadlocks and performance issues, and will be removed in Airflow 3.0. This rule detects usage of SubDagOperator to help users migrate their DAGs to the more reliable TaskGroup pattern.

Ref: #14626

Test Plan
A test fixture has been included for the rule demonstrating both the deprecated SubDagOperator usage and the recommended TaskGroup alternative.

@MichaReiser
Copy link
Member

Same as for #14616 Let's first propose a set of rules that you plan of adding. I want to avoid having 50 or so airflow rules in ruff.

@MichaReiser MichaReiser added the rule Implementing or modifying a lint rule label Nov 27, 2024
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser added the preview Related to preview mode features label Nov 27, 2024
@MichaReiser
Copy link
Member

@abhishekbhakat can we convert this PR back to draft state or close it if it's no longer needed according to the new airflow deprecation rules. It would help me to get a better sense for which PRs need my attention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Related to preview mode features rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants