[ 
https://issues.apache.org/jira/browse/AIRFLOW-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ash Berlin-Taylor resolved AIRFLOW-1484.
----------------------------------------
    Resolution: Duplicate

> 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: 1.8.0
>            Reporter: Jaime Ballesteros
>            Assignee: Stanislav Kudriashev
>            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
(v7.6.3#76005)

Reply via email to