LiaoAB opened a new pull request, #75600:
URL: https://github.com/apache/airflow/pull/75600

   `only_new` clear relied on `created_dag_version_id` to decide which tasks 
were new. Runs without that pointer (migrated from Airflow 2, or after `db 
clean`) were treated as having no new tasks. Use the run's existing 
TaskInstance rows instead.
   
   closes: #71455
   related: #71453
   
   ## Testing
   
   - Added a regression test for a versionless DagRun.
   - `test_cleartasks.py`: 119 passed, 1 skipped.
   - ruff format/check pass.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — opencode was used for assistance; the author reviewed and 
validated the final changes.
   
   Generated-by: opencode following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions).
 The author reviewed and tested the changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to