You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Andre Boechat (JIRA)" <ji...@apache.org> on 2017/10/19 16:30: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 ]

Andre Boechat updated AIRFLOW-1737:
-----------------------------------
    Description: 
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.

  was:
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.


> 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: webapp
>            Reporter: Andre Boechat
>            Priority: Minor
>         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
(v6.4.14#64029)