amoghrajesh commented on code in PR #58227:
URL: https://github.com/apache/airflow/pull/58227#discussion_r2541276477


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -1407,9 +1407,17 @@ def finalize(
     task = ti.task
     # Pushing xcom for each operator extra links defined on the operator only.
     for oe in task.operator_extra_links:
-        link, xcom_key = oe.get_link(operator=task, ti_key=ti), oe.xcom_key  # 
type: ignore[arg-type]
-        log.debug("Setting xcom for operator extra link", link=link, 
xcom_key=xcom_key)
-        _xcom_push_to_db(ti, key=xcom_key, value=link)
+        try:
+            link, xcom_key = oe.get_link(operator=task, ti_key=ti), 
oe.xcom_key  # type: ignore[arg-type]
+            log.debug("Setting xcom for operator extra link", link=link, 
xcom_key=xcom_key)
+            _xcom_push_to_db(ti, key=xcom_key, value=link)
+        except Exception:
+            log.exception(
+                "Failed to get link for operator extra link",

Review Comment:
   ```suggestion
                   "Failed to push an xcom for task operator extra link",
   ```



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