[ 
https://issues.apache.org/jira/browse/AIRFLOW-4880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16895423#comment-16895423
 ] 

ASF subversion and git services commented on AIRFLOW-4880:
----------------------------------------------------------

Commit 1c5f4b99acb426bc1bb0863c752bc0c733cce5cb in airflow's branch 
refs/heads/v1-10-stable from Drazen Urch
[ https://gitbox.apache.org/repos/asf?p=airflow.git;h=1c5f4b9 ]

[AIRFLOW-4880] Add success, failure and fail_on_empty params to SqlSensor 
(#5488)

* [AIRFLOW-4880] Add success, failure and fail_on_empty params

(cherry picked from commit 565ec3d0f725fcf0422974744c0f96e75398ba80)


> Allow for value based failure and success criteria in SqlSensor
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-4880
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4880
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: DAG
>    Affects Versions: 1.10.3
>            Reporter: Drazen Urch
>            Assignee: Drazen Urch
>            Priority: Major
>             Fix For: 1.10.4
>
>
> Currently SqlSensor has a very specific requirements around what should be 
> returned, and can only signal existence of a particular row. There is no way 
> to fail the sensor based on the values returned, something like CheckOperator 
> needs to be used. 
> It would be great to have a way of doing some basic fail/pass logic in the 
> SqlSensor.
> It would also be great to fail if no results are returned as opposed to 
> current infinite retries.
>  



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to