I tried to figure out what that `test_mode` is about. If I get it right it has 
nothing to do with "unit_test_mode" but only with the CLI's "test" sub command 
[1]. It says "... without ... recording its state in the database.". I wasn't 
aware of that.
In `handle_error()` the `TaskFail` is written even in test mode to the DB, but 
the task instance itself is not updated.
For `handle_reschedule()` I don't think it makes sense to record that event. 
But I have I'd like to verify it and probably also add some unit tests...
[1] https://airflow.apache.org/cli.html#test

[ Full content available at: 
https://github.com/apache/incubator-airflow/pull/3596 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to