Jaime Ballesteros created AIRFLOW-1484:
------------------------------------------

             Summary: Updating Tasks through UI crash when execution_date has 
milliseconds
                 Key: AIRFLOW-1484
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1484
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: Airflow 1.8
            Reporter: Jaime Ballesteros
            Priority: Trivial


When updating task states through the UI, if the task has execution_time with 
milliseconds set, it will crash due to date format. Right now, in views.py, 
function set_task_instance_state, the code goes like this:
{code:title=views.py|borderStyle=solid}
task_id, dag_id, execution_date = id.split(',')
execution_date = datetime.strptime(execution_date, '%Y-%m-%d %H:%M:%S')
{code}

Here, if execution_date = "2017-08-01 15:32:43.364564", it will crash with an 
Ooops Exception and no information is given.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to