airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1017) get_task_instance should return None instead of throw an exception for non-existent TIs
Date Wed, 29 Mar 2017 21:15:42 GMT

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

ASF subversion and git services commented on AIRFLOW-1017:
----------------------------------------------------------

Commit 2106ff57056d08436d8aab87ac5601d9f554935a in incubator-airflow's branch refs/heads/v1-8-test
from [~criccomini]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=2106ff5 ]

[AIRFLOW-1017] get_task_instance shouldn't throw exception when no TI

get_task_instance should return None instead of
throwing exception in the case where dagrun does not have the task
instance.

Closes #2178 from aoen/ddavydov--
one_instead_of_first_for_dagrun

(cherry picked from commit b2b9587cca9195229ab107394ad94b7702c70e37)


> get_task_instance should return None instead of throw an exception for non-existent TIs
> ---------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-1017
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1017
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: Dan Davydov
>            Assignee: Dan Davydov
>            Priority: Critical
>             Fix For: 1.8.1
>
>
> We were seeing errors in our scheduler like the following due to this issue:
>   File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2796, in
one
>     raise orm_exc.NoResultFound("No row was found for one()")



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message