shivaam commented on issue #62126:
URL: https://github.com/apache/airflow/issues/62126#issuecomment-4211621160

   Investigated this issue. The root cause is in `_handle_clear_run()` 
(backfill.py) — when reprocessing an existing DagRun, it updates `run_type`, 
`triggered_by`, and `backfill_id` but misses `triggering_user_name` (not even 
accepted as a parameter) and `run_id` (not regenerated).
   
   For the fix, I'd suggest addressing `triggering_user_name` (clear bug — 
audit data is lost) but **not** updating `run_id`. The `run_type` is already 
correctly set to `BACKFILL_JOB`, and no production code derives run type from 
the `run_id` string prefix — the mismatch is cosmetic. Updating `run_id` on a 
live DagRun is non-trivial due to FK constraints from `TaskInstance` and its 
dependents, and not worth the risk for a display inconsistency.


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