russellpierce commented on a change in pull request #5488: Add success, failure
and fail_on_empty params to SqlSensor
URL: https://github.com/apache/airflow/pull/5488#discussion_r297837118
##########
File path: airflow/sensors/sql_sensor.py
##########
@@ -27,8 +27,13 @@
class SqlSensor(BaseSensorOperator):
"""
- Runs a sql statement until a criteria is met. It will keep trying while
- sql returns no row, or if the first cell in (0, '0', '').
+ Runs a sql statement repeteadly until a criteria is met. It will keep
trying until
+ sql returns no rows, or if the first cell is in (0, '0', ''). Optional
success
+ and failure iterables are matched to the first cell returned. If success
+ iterable is defined the senseor will keep retrying until the criteria is
met.
Review comment:
```suggestion
iterable is defined the sensor will keep retrying until the criteria is
met.
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services