You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "shivaam (via GitHub)" <gi...@apache.org> on 2026/04/09 03:18:10 UTC

Re: [I] Backfill Parameters Not Overriding Existing DAG Run Params in Airflow 3 [airflow]

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

   I've opened a PR to fix this: #64939
   
   **Root cause:** When a backfill reprocesses an existing DAG run, `_handle_clear_run()` updates `backfill_id`, `run_type`, and `triggered_by` but never updates `conf` — so the old params persist.
   
   **The fix:** Pass the user-provided conf through to the reprocess path and apply it to the DagRun. When no conf is provided, the existing conf is preserved.
   
   Also added conf validation against the DAG's param schema so invalid params are rejected upfront, matching what already happens for manually triggered runs.
   
   **Follow-up items noted in the PR:**
   1. `ValueError` from conf validation isn't caught by the backfill API route (surfaces as 500 instead of 400) — pre-existing pattern, same gap exists for manual triggers
   2. The backfill UI form pre-fills DAG defaults, which could accidentally overwrite custom conf on existing runs — a follow-up UI checkbox ("Override parameters on existing runs") would address this
   
   @potiuk would appreciate your review when you get a chance.


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org