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

Set parsing context dag_id in dag test command #37606

Merged
merged 1 commit into from Feb 22, 2024

Conversation

SamWheating
Copy link
Contributor

closes: #37483

This PR sets the parsing context when loading a DAG as a part of the airflow dags test command.

Since the DAG is only parsed once (for all tasks), we can't set the task_id in the calling context, so I've left it as None.

@potiuk potiuk merged commit c0e30cb into apache:main Feb 22, 2024
59 checks passed
abhishekbhakat pushed a commit to abhishekbhakat/my_airflow that referenced this pull request Mar 5, 2024
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Mar 6, 2024
ephraimbuddy pushed a commit that referenced this pull request Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:CLI type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_parsing_context().dag_id is not set when using airflow dags test command
3 participants