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

[jira] [Commented] (AIRFLOW-3915) Scheduler fails for dags with datetime start_date

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

jack commented on AIRFLOW-3915:
-------------------------------

If this is still an issue you are welcome to create PR

> Scheduler fails for dags with datetime start_date
> -------------------------------------------------
>
>                 Key: AIRFLOW-3915
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3915
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: models
>    Affects Versions: 1.10.2
>            Reporter: David Stuck
>            Priority: Major
>
> When start_date is passed in to a dag as a datetime object, it does not get converted to pendulum and thus the scheduler fails at [https://github.com/apache/airflow/blob/4083a8f5217e9ca7a5c83a3eaaaf403dd367a90c/airflow/models.py#L3487] when trying to access `self.timezone.name`.
> My guess is that the fix is as simple as setting `self.timezone = pendulum.instance(self.timezone)` in `__init__`. If that sounds right I can create a PR.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)