airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andre Boechat (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-1737) set_task_instance_state fails because of strptime
Date Thu, 19 Oct 2017 16:30:00 GMT

     [ 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)

Mime
View raw message