Rob created AIRFLOW-4133:
----------------------------

             Summary: CLI `test` mode writes to DB on failure
                 Key: AIRFLOW-4133
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4133
             Project: Apache Airflow
          Issue Type: Bug
          Components: cli
    Affects Versions: 1.10.2
            Reporter: Rob


The documentation for running {{airflow test}} says that this mode does NOT 
record any state in the DB.

However, {{def handle_failure}} will *always* add {{TaskFail}} to the session

[https://github.com/apache/airflow/blob/ae295382a0f1ad7a7d8d0368483de22d03e88493/airflow/models/__init__.py#L1536]

and then commit at the end

[https://github.com/apache/airflow/blob/ae295382a0f1ad7a7d8d0368483de22d03e88493/airflow/models/__init__.py#L1576]

regardless of the value for {{test_mode.}}

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to