[ https://issues.apache.org/jira/browse/AIRFLOW-4133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob updated AIRFLOW-4133: ------------------------- Description: The documentation for running {{airflow test}} says that this mode does NOT record any state in the DB. However, failed tasks are currently recorded into table {{task_fail}} regardless of the {{test}} mode. Details: {{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.}} was: 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.}} > CLI `test` mode writes to DB on task 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 > Priority: Minor > > The documentation for running {{airflow test}} says that this mode does NOT > record any state in the DB. However, failed tasks are currently recorded into > table {{task_fail}} regardless of the {{test}} mode. Details: > {{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)