You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Mjumbe Poe (JIRA)" <ji...@apache.org> on 2017/12/12 02:27:00 UTC

[jira] [Commented] (AIRFLOW-1484) Updating Tasks through UI crash when execution_date has milliseconds

    [ https://issues.apache.org/jira/browse/AIRFLOW-1484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16286991#comment-16286991 ] 

Mjumbe Poe commented on AIRFLOW-1484:
-------------------------------------

Seems like this might be addressed by commit https://github.com/apache/incubator-airflow/commit/313f5bac4a3f804094bcd583e0e5fbc3b5f405bb

> 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
>            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
(v6.4.14#64029)