vikramaditya91 commented on issue #40745:
URL: https://github.com/apache/airflow/issues/40745#issuecomment-2231734983

   I was planning on working on this but happy to see that @Prab-27 is going to 
be contributing towards this.
   
   In any case, my original plan was to fix this by following:
   - Move the `_check_for_existence` method from the `ExternalTaskSensor` to a 
shared location (potentially in the `airflow/airflow/utils/`) and call it the 
`check_for_existence` method.  Make changes in the `ExternalTaskSensor`, 
because of this change
   - Add an extra argument to the constructor of the `WorkflowTrigger` with a 
new keyword argument `check_existence`. It is `False` by default, but is being 
set by the `check_existence` in `ExternalTaskSensor`.
   - In the `async run` of the `WorkflowTrigger`, call the 
`check_for_existence` if `check_existence` is True. This step will raise an 
`AirflowException`  is the DAG/task_id/task_group_id is not found
   
   Do you agree with that solution @potiuk ?


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