You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/11/05 17:26:00 UTC

[jira] [Resolved] (AIRFLOW-2865) Race condition between on_success_callback and LocalTaskJob's cleanup

     [ 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)