MonsterChenzhuo commented on issue #61344:
URL: https://github.com/apache/airflow/issues/61344#issuecomment-4051962359

   > > <img alt="Image" width="733" height="449" 
src="https://private-user-images.githubusercontent.com/60029759/562047580-9e974dda-2a7f-478f-867a-fe640a5d7bfa.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzMzNjk1MTQsIm5iZiI6MTc3MzM2OTIxNCwicGF0aCI6Ii82MDAyOTc1OS81NjIwNDc1ODAtOWU5NzRkZGEtMmE3Zi00NzhmLTg2N2EtZmU2NDBhNWQ3YmZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAzMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMzEzVDAyMzMzNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNkOTVlY2IxOGEyODlkNjY1YzY4ZGQ2YzI3MGIxNDBjNmI5YzM5YmI2MmQwNDNlN2NhYjcxYWI1NzJhOWIwMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.P-wQgcDqqq5gFyvG4DA0T0yWpWxtZ8qTIPu_atSLoWQ";>
   > > [@shahar1](https://github.com/shahar1)  
[@rahulmansharamani14](https://github.com/rahulmansharamani14) I have a 
technical question regarding DAG logic. Today is March 12, 2026, and I just 
added a new Operator named test1 to an existing DAG.
   > > I want to backfill/run only this specific Operator for the historical 
period of March 1, 2026, to March 11, 2026. However, I cannot find a button to 
trigger this at the Operator level. In the Grid/Graph view, the 'squares' for 
this new task are empty for those past dates and are not clickable.
   > > As a result, I am forced to backfill the entire DAG for those days, 
which is very inefficient. Am I missing something in the UI, or is there a 
better way to trigger a single task for a historical range without re-running 
everything?
   > > To add: I have read the article you sent, but I still don't understand 
it very well.
   > 
   > AFAIK, Airflow does not provide an option to retrospectively run a single 
task for historical dates if that task did not exist in the original Dag run.
   > 
   > While it is now possible to run the current version of a Dag for past 
logical dates, tasks in Airflow are always executed within the context of a Dag 
run. Running a task independently for past dates would mean executing it 
without the full Dag context, including the dependencies and structure that 
defined that run.
   > 
   > Since changes to the Dag (such as adding tasks or modifying dependencies) 
effectively change that context, executing a single task retrospectively 
without recreating the corresponding Dag runs would not reflect the correct 
workflow state. For that reason, the typical approach is to trigger or backfill 
the Dag for the relevant dates rather than running an individual task in 
isolation.
   
   In my view, version traceability is not always a mandatory requirement. For 
scenarios where it's unnecessary, the current overhead of tracing the entire 
DAG history feels excessive.
   
   I’m considering whether we could introduce a configuration toggle for users 
who don't require strict versioning. Here is the logic:
   
   Current Behavior: When a new task (e.g., test1) is added, Airflow generates 
a new DagVersion and writes the serialized DAG. However, historical DagRuns 
(e.g., from 2026-03-01 to 03-11) do not have corresponding TaskInstance rows 
for test1, causing 'blank and unclickable' cells in the Grid view.
   
   Proposed Improvement: Upon DAG parsing, if this toggle is enabled, Airflow 
would automatically backfill the missing TaskInstance rows for historical 
DagRuns. This ensures the Grid view represents test1 with a 'No Status/Not Run' 
state instead of a gap, providing a more consistent UI experience."


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