You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Aizhamal Nurmamat kyzy (JIRA)" <ji...@apache.org> on 2019/05/18 03:17:00 UTC
[jira] [Updated] (AIRFLOW-1737) set_task_instance_state fails
because of strptime
[ https://issues.apache.org/jira/browse/AIRFLOW-1737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aizhamal Nurmamat kyzy updated AIRFLOW-1737:
--------------------------------------------
Labels: webapp (was: )
Component/s: (was: webapp)
ui
Moving to ui component as part of refactor. webapp component to be removed.
> set_task_instance_state fails because of strptime
> -------------------------------------------------
>
> Key: AIRFLOW-1737
> URL: https://issues.apache.org/jira/browse/AIRFLOW-1737
> Project: Apache Airflow
> Issue Type: Bug
> Components: ui
> Reporter: Andre Boechat
> Priority: Minor
> Labels: webapp
> Attachments: Screenshot_2017-10-18_15-58-29.png
>
>
> Context:
> * DAG run triggered manually
> * Using the web application to change the state of a task
> When trying to set the state of a task, an exception is thrown: *ValueError: unconverted data remains: ..372649* (look at the attached screenshot).
> I think the problem comes from the "execution date" created by manually triggered DAGs, since the date-time includes a fractional part. In my database, I see scheduled DAGs with execution dates like "10-18T15:00:00", while manually triggered ones with dates like "09-21T16:36:16.170988". If we look at the method *set_task_instance_state* in *airflow.www.views*, we see that the format string used with *strptime* doesn't consider any fractional part.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)