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

   Backfills can now target a subset of a Dag's tasks via a `task_id_pattern` 
regular expression, instead of always covering the whole graph.
   
   Motivating cases from the issue: rebuilding one dataset among many written 
by a single Dag, and excluding a historical sensor whose external data has 
since been pruned and can no longer succeed.
   
   **Behaviour**
   - `task_id_pattern` is resolved to the matching task ids at creation time 
and persisted on the backfill (`selected_task_ids`), so the selection stays 
reproducible even if the Dag later changes.
   - The scheduler restricts the run to the selected tasks by pruning the run's 
Dag to that subset (reusing `SerializedDAG.partial_subset`). Dependencies on 
unselected upstream tasks are ignored, and run success is judged on the 
selected tasks alone.
   - Requests whose pattern matches no task are rejected (422); an invalid 
regex is rejected too.
   - Omitting the pattern backfills the whole Dag exactly as before — the new 
column is nullable, so existing backfills are unaffected.
   
   Scope of this PR: model + migration + REST API + scheduler semantics + 
tests. CLI and UI form controls are intended as follow-ups.
   
   closes: #70027
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code 
   


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