You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Renan Oliveira (JIRA)" <ji...@apache.org> on 2016/12/20 19:23:58 UTC

[jira] [Created] (AIRFLOW-707) Task return "False" should have status "failed" not "sucess"

Renan Oliveira created AIRFLOW-707:
--------------------------------------

             Summary: Task return "False" should have status "failed" not "sucess"
                 Key: AIRFLOW-707
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-707
             Project: Apache Airflow
          Issue Type: Improvement
    Affects Versions: Airflow 1.7.1
         Environment: Mac OS X - El Capitan
            Reporter: Renan Oliveira
            Priority: Minor


I expected my task failed if my task return "False" but it is only returned failed if include an Exception.

Run command:
$ AIRFLOW_HOME=$PWD airflow run false-check check 2016-12-20T17:18:00

Gist with example code:
https://gist.github.com/tarsisazevedo/49b6462cc530c363ae929a44c2931e42

Image webserver success:
https://lh3.googleusercontent.com/-SOdXfg_aOVI/WFmEGrUsTVI/AAAAAAAAAgg/L8WaX6W637cNEba44veHLTP37bdI7YzgACL0B/h240/Screen%2BShot%2B2016-12-20%2Bat%2B5.18.32%2BPM.png




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)