[ https://issues.apache.org/jira/browse/AIRFLOW-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarek Potiuk resolved AIRFLOW-1772. ----------------------------------- Resolution: Fixed Fix Version/s: 1.10.5 > Google Updated Sensor doesnt work with CRON expressions > -------------------------------------------------------- > > Key: AIRFLOW-1772 > URL: https://issues.apache.org/jira/browse/AIRFLOW-1772 > Project: Apache Airflow > Issue Type: Bug > Components: gcp > Reporter: sam elamin > Assignee: Kamil Bregula > Priority: Major > Fix For: 1.10.5 > > > Hi > I noticed that the [Update > Sensor|https://github.com/apache/incubator-airflow/blob/master/airflow/contrib/sensors/gcs_sensor.py#L73] > does not work with a cron expression set as the schedule interval > According to the airflow docs a scheduler interval can be a timedelta or a > string > When its a cron expression the schedule is a string and hence this [line | > https://github.com/apache/incubator-airflow/blob/master/airflow/contrib/sensors/gcs_sensor.py#L70] > breaks > the error is below > ''str' object is not callable' > Ideally that line should check if the interval is a cron expression and if it > is convert it to a time delta > Also as a side note i noticed that the update sensor doesnt match regex and > has to be exact, surly adding regex support here would make sense since the > gsutil cli does this as well -- This message was sent by Atlassian JIRA (v7.6.14#76016)