pankajkoti commented on code in PR #49711:
URL: https://github.com/apache/airflow/pull/49711#discussion_r2058611101


##########
providers/google/src/airflow/providers/google/cloud/triggers/bigquery.py:
##########
@@ -116,16 +117,39 @@ def get_task_instance(self, session: Session) -> 
TaskInstance:
             )
         return task_instance
 
+    def get_task_state(self):
+        from airflow.sdk.execution_time.task_runner import RuntimeTaskInstance
+
+        task_states_response = RuntimeTaskInstance.get_task_states(
+            dag_id=self.task_instance.dag_id,
+            task_ids=[self.task_instance.task_id],

Review Comment:
   We may also need to account for the `map_index` property when applying the 
filtering logic here, similar to how it’s currently handled in the Airflow 2 
method. I believe @gopidesupavan is planning to help with adding support for 
the `map_index` property in `get_task_states` and then we can iterate on here. 
   
   But thanks for helping on achieving this here.



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