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


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

Review Comment:
   Would also be nice to wrap these calls under `sync_to_async` like in 
https://github.com/apache/airflow/blob/78615a35f04b6d7a0bf2dbb1787260ba5f4356dc/providers/standard/src/airflow/providers/standard/triggers/external_task.py#L150-L153



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