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

   Fixes #65366.
   
   Replacement for closed stale draft #65926.
   
   Preserves retry attempt metadata before recording TaskInstanceHistory so 
historical retry rows keep fields such as hostname, start_date, end_date, and 
duration.
   
   Tests:
   - `uv run prek --files 
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py 
airflow-core/src/airflow/jobs/scheduler_job_runner.py 
airflow-core/src/airflow/models/dagrun.py 
airflow-core/src/airflow/models/taskinstancehistory.py 
airflow-core/src/airflow/models/trigger.py 
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
 airflow-core/tests/unit/jobs/test_scheduler_job.py 
airflow-core/tests/unit/models/test_dagrun.py 
airflow-core/tests/unit/models/test_trigger.py`
   - `AIRFLOW_HOME=/private/tmp/airflow-tests-65926-rebase uv run pytest 
airflow-core/tests/unit/jobs/test_scheduler_job.py -k 'timeout_triggers or 
upstream_failed or awaiting_input_timeout' 
airflow-core/tests/unit/api_fastapi/execution_api/versions/head/test_task_instances.py
 -k 'retry or rendered_map_index' 
airflow-core/tests/unit/models/test_trigger.py 
airflow-core/tests/unit/models/test_dagrun.py -k 'start_trigger or trigger' 
--with-db-init`
   


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