You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/14 23:09:49 UTC

[GitHub] [airflow] raphaelauv edited a comment on issue #17010: Add a trigger rule to support all_done_and_one_success

raphaelauv edited a comment on issue #17010:
URL: https://github.com/apache/airflow/issues/17010#issuecomment-880267979


   Problem what to do about the person that need
   
   all_done_and_X_success where X could be 2 and not one
   
   Look like airflow is missing an expressive pattern to let the user implement any custom TriggerRule logic
   
   Maybe there could be an interface 
   
   ```python
   class TriggerRule(ABC):
   
       @abstractmethod
       def check_condition(self)->bool:
            pass
   ``` 
   
   that the users could extends and the current https://github.com/apache/airflow/blob/main/airflow/utils/trigger_rule.py would also implement that interface
   
   


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org