You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Milan van der Meer (JIRA)" <ji...@apache.org> on 2017/12/05 15:10:00 UTC

[jira] [Commented] (AIRFLOW-1623) Clearing task in UI does not trigger on_kill method in operator

    [ https://issues.apache.org/jira/browse/AIRFLOW-1623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16278696#comment-16278696 ] 

Milan van der Meer commented on AIRFLOW-1623:
---------------------------------------------

This is a big issue for us atm. For example: when submitting a spark job to a cluster, it will not be killed when you clear the job through the UI because of this bug.

> Clearing task in UI does not trigger on_kill method in operator
> ---------------------------------------------------------------
>
>                 Key: AIRFLOW-1623
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1623
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: operators
>    Affects Versions: Airflow 2.0
>            Reporter: Richard Penman
>            Priority: Minor
>             Fix For: Airflow 2.0
>
>
> When a task is cleared in the UI it doesn't call the [operators on_kill() method|https://github.com/apache/incubator-airflow/blob/b2e1753f5b74ad1b6e0889f7b784ce69623c95ce/airflow/models.py#L2380] to clean up the task. Apparently this is meant to be handled in the [LocalTaskJob.on_kill()|https://github.com/apache/incubator-airflow/blob/b2e1753f5b74ad1b6e0889f7b784ce69623c95ce/airflow/jobs.py#L2512] method, however it is not currently.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)