uranusjr commented on code in PR #45294:
URL: https://github.com/apache/airflow/pull/45294#discussion_r1923251268


##########
airflow/api_fastapi/execution_api/datamodels/taskinstance.py:
##########
@@ -181,6 +182,7 @@ class DagRun(BaseModel):
     data_interval_end: UtcDateTime | None
     start_date: UtcDateTime
     end_date: UtcDateTime | None
+    clear_number: int

Review Comment:
   Conceptually (in OpenLineage) if you clear and rerun a DAG run, the two runs 
(before and after the clear) are treated as entirely different objects. I 
believe this is kind of what we want to do in Airflow in the long run (similar 
to how we added TaskInstanceHistory), but before that happens, OL needs 
clear_number to distinguish _logically_ different runs that reuse the same DR 
row and have the exact same identity otherwise (run_id, and even the UUID pk).



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