mobuchowski commented on code in PR #49237:
URL: https://github.com/apache/airflow/pull/49237#discussion_r2055792768


##########
providers/openlineage/src/airflow/providers/openlineage/plugins/listener.py:
##########
@@ -504,11 +502,12 @@ def on_state_change():
             adapter_kwargs = {
                 "run_id": task_uuid,
                 "job_name": get_job_name(ti),
-                "parent_job_name": dagrun.dag_id,
-                "parent_run_id": parent_run_id,
                 "end_time": end_date.isoformat(),
                 "task": OperatorLineage(),
-                "run_facets": get_airflow_debug_facet(),
+                "run_facets": {
+                    **get_task_parent_run_id(ti.dag_id, parent_run_id),

Review Comment:
   There is validation, I just did not run it with manual method. Added calls 
to the test now.



##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -126,6 +127,24 @@ def get_job_name(task: TaskInstance) -> str:
     return f"{task.dag_id}.{task.task_id}"
 
 
+def get_task_parent_run_id(

Review Comment:
   Fixed.



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