You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fabrice Dossin (JIRA)" <ji...@apache.org> on 2018/01/27 15:53:00 UTC

[jira] [Created] (AIRFLOW-2040) Could not access Task log file on timezone aware dags

Fabrice Dossin created AIRFLOW-2040:
---------------------------------------

             Summary: Could not access Task log file on timezone aware dags
                 Key: AIRFLOW-2040
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2040
             Project: Apache Airflow
          Issue Type: Bug
          Components: webserver
    Affects Versions: 1.10.0
            Reporter: Fabrice Dossin
            Assignee: Fabrice Dossin


When opening the task logs from Browse-Task Instances list, I have the following error message in the panel that should contains the log :
{code:java}
Task instance did not exist in the DB
{code}
 

Dag timezone : "Eurrope/Brussels" (+01:00) 
Job Execution date is 2017-12-31T23:10:00+00:00 
On Web interface http://localhost:28080/admin/taskinstance/ the Log URL is 
http://localhost:28080/admin/airflow/log?dag_id=duplicate_task_instance&task_id=do_something&execution_date=2017-12-31T23:10:00+00:00 

In code from the debugger in views.py
"dag_id" = str: duplicate_task_instance 
"task_id" str: do_something 
"execution_date" str: 2017-12-31T23:10:00 00:00 

Then the execution_date is parsed with pendulum:
"dttm" Pendulum: 2017-12-31T00:00:00+00:00

As you see, the "+" was lost in the request, so pendulum is truncating the date and nothing is found.

If I try to change manually the URL into 
http://localhost:28080/admin/airflow/log?dag_id=duplicate_task_instance&task_id=do_something&execution_date=2017-12-31T23:10:00%2B00:00

It works !

So I probably have to find where to change the URL encoding of the Task Instances list.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)