ydsakshi commented on code in PR #74580:
URL: https://github.com/apache/airflow/pull/74580#discussion_r4255099452


##########
providers/standard/src/airflow/providers/standard/sensors/external_task.py:
##########
@@ -346,7 +353,20 @@ def poke(self, context: Context) -> bool:
 
         if AIRFLOW_V_3_0_PLUS:
             return self._poke_af3(context, dttm_filter)
-        return self._poke_af2(dttm_filter)
+        return self._poke_af2(context, dttm_filter)
+
+    def _push_external_run_ids_to_xcom(
+        self, context: Context, dttm_filter: Sequence[datetime.datetime]
+    ) -> None:
+        try:
+            if dttm_filter:
+                logical_date = dttm_filter[0]
+                external_run_id = f"scheduled__{logical_date.isoformat()}"
+
+                ti = context.get("ti")
+                ti.xcom_push(key=ExternalDagLink().xcom_key, 
value=external_run_id)

Review Comment:
   Changes are done, checks are running right now.



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