airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kengo Seki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-586) Importing dags/test_dag.py fails between 0 and 3 o'clock
Date Sun, 23 Oct 2016 05:54:59 GMT
Kengo Seki created AIRFLOW-586:
----------------------------------

             Summary: Importing dags/test_dag.py fails between 0 and 3 o'clock
                 Key: AIRFLOW-586
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-586
             Project: Apache Airflow
          Issue Type: Bug
            Reporter: Kengo Seki


It raises the following error:

{code}
$ airflow webserver

(snip)

[2016-10-23 00:07:30,613] [28693] {models.py:266} ERROR - Failed to import: /home/sekikn/airflow/dags/test_dag.py
Traceback (most recent call last):
  File "/home/sekikn/incubator-airflow/airflow/models.py", line 263, in process_file
    m = imp.load_source(mod_name, filepath)
  File "/home/sekikn/airflow/dags/test_dag.py", line 20, in <module>
    now_to_the_hour = now.replace(hour=now.time().hour-3 , minute=0, second=0, microsecond=0)
ValueError: hour must be in 0..23
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message