You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kamil Bregula (JIRA)" <ji...@apache.org> on 2019/08/05 23:53:00 UTC

[jira] [Assigned] (AIRFLOW-1772) Google Updated Sensor doesnt work with CRON expressions

     [ https://issues.apache.org/jira/browse/AIRFLOW-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kamil Bregula reassigned AIRFLOW-1772:
--------------------------------------

    Assignee: Kamil Bregula

> 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
>
> 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)