You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kaxil Naik (Jira)" <ji...@apache.org> on 2020/02/03 13:33:00 UTC
[jira] [Updated] (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:all-tabpanel ]
Kaxil Naik updated AIRFLOW-3915:
--------------------------------
Fix Version/s: (was: 1.10.8)
> 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
> Fix For: 2.0.0
>
>
> 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)