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-969) Catch bad python_callable argument at DAG construction rather than Task run
Date Thu, 16 Mar 2017 23:37:41 GMT

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

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

Commit 12901ddfa9961a11feaa3f17696d19102ff8ecd0 in incubator-airflow's branch refs/heads/master
from abloomston
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=12901dd ]

[AIRFLOW-969] Catch bad python_callable argument

Checks for callable when Operator is
created, not when it is run.

* added initial PythonOperator unit test, testing
run
* python_callable must be callable; added unit
test

Closes #2142 from abloomston/python-callable


> Catch bad python_callable argument at DAG construction rather than Task run
> ---------------------------------------------------------------------------
>
>                 Key: AIRFLOW-969
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-969
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: operators
>            Reporter: Adam Bloomston
>            Assignee: Adam Bloomston
>            Priority: Minor
>             Fix For: 1.9.0
>
>
> If a non-callable parameter for python_callable is passed to PythonOperator, it should
fail to instantiate.  This will move such failures from task run to DAG instantiation. Better
to catch such errors sooner rather than later in execution.



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

Mime
View raw message