cherrera20 commented on issue #39463:
URL: https://github.com/apache/airflow/issues/39463#issuecomment-2101960623

   OK thanks. Just to illustrate how the sensor would look like I leave you a 
code snippet of the hypothetical call to the sensor. If it makes sense to you 
we can move on :-)
   
   `
   
       wait_for_single_task = ExternalAPITaskSensor(
           task_id="wait_for_single_task",
           external_dag_id="secondary_dag",
           external_task_id="task_a",
           allowed_states=["success"],
           failed_states=["failed"],
           skipped_states=["skipped"],
           http_conn_id="http_default",
           execution_date="{{ execution_date }}",
           deferrable=True
       )
   
       
       wait_for_multiple_tasks = ExternalAPITaskSensor(
           task_id="wait_for_multiple_tasks",
           external_dag_id="secondary_dag",
           external_task_ids=["task_b", "task_c"],
           allowed_states=["success"],
           failed_states=["failed"],
           skipped_states=["skipped"],
           http_conn_id="http_default",
           execution_date="{{ execution_date }}",
           deferrable=True
       )
   
       
       wait_for_task_group = ExternalAPITaskSensor(
           task_id="wait_for_task_group",
           external_dag_id="secondary_dag",
           external_task_group_id="group_1",
           allowed_states=["success"],
           failed_states=["failed"],
           skipped_states=["skipped"],
           http_conn_id="http_default",
           execution_date="{{ execution_date }}",
           deferrable=True
       )
   `


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