You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Palanieppan Muthiah (JIRA)" <ji...@apache.org> on 2019/05/30 23:23:00 UTC
[jira] [Created] (AIRFLOW-4715) On success callback on task does
not run reliably
Palanieppan Muthiah created AIRFLOW-4715:
--------------------------------------------
Summary: On success callback on task does not run reliably
Key: AIRFLOW-4715
URL: https://issues.apache.org/jira/browse/AIRFLOW-4715
Project: Apache Airflow
Issue Type: Bug
Components: DAG
Affects Versions: 1.10.1
Reporter: Palanieppan Muthiah
When a task succeeds, the on_success_callback is only called after the task state is set to success. If the success_callback runs long enough, the task heartbeat process finds the task state is already success and kills itself, disrupting the long running success_callback.
On the other hand, in the case of failure, the on_failure_callback is called first before the state is set to failed.
It seems the correct behavior is that the success callback is called first, and then state is set to success (regardless of any error in the success_callback).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)