[ https://issues.apache.org/jira/browse/AIRFLOW-2865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ash Berlin-Taylor resolved AIRFLOW-2865. ---------------------------------------- Resolution: Fixed Fix Version/s: 2.0.0 > Race condition between on_success_callback and LocalTaskJob's cleanup > --------------------------------------------------------------------- > > Key: AIRFLOW-2865 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2865 > Project: Apache Airflow > Issue Type: Bug > Reporter: Marcin Mejran > Priority: Minor > Fix For: 2.0.0 > > > The TaskInstance's run_raw_task method first records SUCCESS for the task > instance and then runs the on_success_callback function. > The LocalTaskJob's heartbeat_callback checks for any TI's with a SUCCESS > state and terminates their processes. > As such it's possible for the TI process to be terminated before the > on_success_callback function finishes running. -- This message was sent by Atlassian JIRA (v7.6.3#76005)