airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruslan Dautkhanov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1002) Add ability to remove DAG and all dependencies
Date Fri, 17 Mar 2017 20:42:41 GMT
Ruslan Dautkhanov created AIRFLOW-1002:
------------------------------------------

             Summary: 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


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)

Mime
View raw message