Skip to content

Conversation

@ferruzzi
Copy link
Contributor

@ferruzzi ferruzzi commented Dec 4, 2025

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.


^ 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.

@ferruzzi ferruzzi requested review from XD-DENG and ashb as code owners December 4, 2025 19:37
Copy link
Contributor

@1fanwang 1fanwang left a comment

Choose a reason for hiding this comment

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

thanks for the PR @ferruzzi , asked a question here just for my learning

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
@ferruzzi ferruzzi force-pushed the ferruzzi/clear-dagrun-fix branch from 6771c52 to d3d7c80 Compare December 4, 2025 22:39
Copy link
Contributor

@1fanwang 1fanwang left a comment

Choose a reason for hiding this comment

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

Approved.

Thanks @ferruzzi — unit test looks good, and really appreciate the investigation and debugging here. This fix mitigates the issue and does exactly what it’s supposed to do.
Agreed that a full deep-dive into the underlying SQLAlchemy behavior is beyond the purpose and scope of this PR.

Should we create an issue to track this potential SQLAlchemy interaction so the community has it in the backlog to look into?

@potiuk
Copy link
Member

potiuk commented Dec 7, 2025

Nice investigation and questions :)

@potiuk potiuk merged commit 2b38b19 into apache:main Dec 7, 2025
65 checks passed
potiuk pushed a commit to potiuk/airflow that referenced this pull request Dec 7, 2025
…9066)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
jscheffl pushed a commit that referenced this pull request Dec 7, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Dec 8, 2025
Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 8, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 9, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 11, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Dec 12, 2025
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
ephraimbuddy pushed a commit that referenced this pull request Jan 6, 2026
…59177)

Clearing a dag run sets the state to QUEUED so the scheduler will pick it up, but it did not reset the queued_at timestamp.
(cherry picked from commit 2b38b19)

Co-authored-by: D. Ferruzzi <ferruzzi@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants