sam elamin created AIRFLOW-1772:
-----------------------------------

             Summary: 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
            Priority: Normal


Hi

I noticed that the 
(GoogleCloudStorageObjectUpdatedSensor)[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 
[https://github.com/apache/incubator-airflow/blob/master/airflow/contrib/sensors/gcs_sensor.py#L70](line)
 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 





--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to