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

Deprecate DAG.run method #42417

Merged
merged 3 commits into from
Sep 24, 2024
Merged

Deprecate DAG.run method #42417

merged 3 commits into from
Sep 24, 2024

Conversation

dstandish
Copy link
Contributor

This method relies on local backfill mode, which is slated for removal in 3.0. We have suitable alternatives such as DAG.test() and triggering dags via API.

This method relies on local backfill mode, which is slated for removal in 3.0. We have suitable alternatives such as DAG.test() and triggering dags via API.
@vincbeck
Copy link
Contributor

Should it be done in v2-test branch? In main we want to remove it I guess?

@dstandish
Copy link
Contributor Author

I think that the practice is, add to main first, then cherry pick. But I could be wrong.

@vincbeck
Copy link
Contributor

That works too :)

Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume you need to adjust some pytests making the CI green, else OK.

@kaxil kaxil modified the milestones: Airflow 2.11.0, Airflow 2.10.3 Sep 23, 2024
@kaxil
Copy link
Member

kaxil commented Sep 23, 2024

cc @ephraimbuddy / @utkarsharma2 If we do release 2.10.3 -- worth including it then or directly in 2.11

@dstandish
Copy link
Contributor Author

I assume you need to adjust some pytests making the CI green, else OK.

Yeah I had to. These are actually very old tests. And it sorta wasn't clear what they were testing. But they are related to this issue #1225. Ultimately though, they only test behavior of the backfill scheduler, which is going to be removed, so the tests can safely be removed IMHO. And I've added a todo for that to remove them along with DAG.run.

@dstandish dstandish merged commit bd8d5ee into apache:main Sep 24, 2024
51 checks passed
@dstandish dstandish deleted the deprecate-dag-run branch September 24, 2024 01:52
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@kaxil kaxil modified the milestones: Airflow 2.11.0, Airflow 2.10.3 Oct 9, 2024
joaopamaral pushed a commit to joaopamaral/airflow that referenced this pull request Oct 21, 2024
This method relies on local backfill mode, which is slated for removal in 3.0. We have suitable alternatives such as DAG.test() and triggering dags via API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

6 participants