You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2017/03/29 06:19:41 UTC

[jira] [Assigned] (AIRFLOW-1002) Add ability to remove DAG and all dependencies

     [ https://issues.apache.org/jira/browse/AIRFLOW-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kengo Seki reassigned AIRFLOW-1002:
-----------------------------------

    Assignee: Kengo Seki

> Add ability to remove DAG and all dependencies 
> -----------------------------------------------
>
>                 Key: AIRFLOW-1002
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1002
>             Project: Apache Airflow
>          Issue Type: New Feature
>          Components: core, DAG
>    Affects Versions: Airflow 2.0, Airflow 1.8
>            Reporter: Ruslan Dautkhanov
>            Assignee: Kengo Seki
>
> I don't see an obvious way to remove a DAG with dependencies
> Looks like folks have custom scripts to clean up backend database directly.
> http://stackoverflow.com/questions/40651783/airflow-how-to-delete-a-dag
> https://groups.google.com/forum/#!topic/airbnb_airflow/GVsNsUxPRC0
> It would be nice to have a feature to remove a DAG directly in UI / through API.
> {code}
> queries = {'delete from xcom where dag_id = "' + dag_input + '"',
>         'delete from task_instance where dag_id = "' + dag_input + '"',
>         'delete from sla_miss where dag_id = "' + dag_input + '"',
>         'delete from log where dag_id = "' + dag_input + '"',
>         'delete from job where dag_id = "' + dag_input + '"',
>         'delete from dag_run where dag_id = "' + dag_input + '"',
>         'delete from dag where dag_id = "' + dag_input + '"' }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)