Skip to content

Fix CLI airflow tasks clear - #48471

Merged
kaxil merged 1 commit into
apache:mainfrom
bugraoz93:fix/48430/cli-clear-tis
Mar 28, 2025
Merged

kaxil merged 1 commit into
apache:mainfrom
bugraoz93:fix/48430/cli-clear-tis

Conversation

@bugraoz93

@bugraoz93 bugraoz93 commented Mar 28, 2025 •

Copy link
Copy Markdown
Contributor

closes: #48430
Use from_db to use airflow.models.DAG (Returned as SerializedDAG) rather than sdk.definitions.DAG to use clear method. If it read from other than db, the methods returning sdk.definitions.DAG.

Local Run SS:
Screenshot from 2025-03-28 01-20-34


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

…dels.DAG rather than sdk.definitions.DAG to use clear method
@kaxil
kaxil merged commit fa8834c into apache:main Mar 28, 2025
@kaxil

kaxil commented Mar 28, 2025

Copy link
Copy Markdown
Member

damn the commit message was different to PR title, and I hit merge before changing commit title :( so it now looks like

image

pankajkoti pushed a commit to astronomer/airflow that referenced this pull request Mar 28, 2025
…dels.DAG rather than sdk.definitions.DAG to use clear method (apache#48471)

closes: apache#48430
Use from_db to use `airflow.models.DAG` (Returned as SerializedDAG) rather than `sdk.definitions.DAG` to use `clear` method. If it read from other than db, the methods returning  `sdk.definitions.DAG`.

Local Run SS:
![Screenshot from 2025-03-28 01-20-34](https://github.com/user-attachments/assets/eb8f85bc-1694-4e8e-9f9b-32e6cc8eca43)
@bugraoz93

Copy link
Copy Markdown
Contributor Author

damn the commit message was different to PR title, and I hit merge before changing commit title :( so it now looks like

image

I thought it always squash 😓

shubham-pyc pushed a commit to shubham-pyc/airflow that referenced this pull request Apr 2, 2025
…dels.DAG rather than sdk.definitions.DAG to use clear method (apache#48471)

closes: apache#48430
Use from_db to use `airflow.models.DAG` (Returned as SerializedDAG) rather than `sdk.definitions.DAG` to use `clear` method. If it read from other than db, the methods returning  `sdk.definitions.DAG`.

Local Run SS:
![Screenshot from 2025-03-28 01-20-34](https://github.com/user-attachments/assets/eb8f85bc-1694-4e8e-9f9b-32e6cc8eca43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to clear a task instance using CLI command

2 participants