You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "t oo (Jira)" <ji...@apache.org> on 2020/01/01 10:56:00 UTC

[jira] [Commented] (AIRFLOW-5523) DAGs never get cleaned up from webservers if DAG file is removed from the scheduler

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

t oo commented on AIRFLOW-5523:
-------------------------------

my thoughts: autodelete dags that are no longer in any dagbag....ie dynamic dag generator used to make 10 dags, now makes 7...other 3 should be auto deleted...guarded by config option 'auto_delete_dags_not_found'

> DAGs never get cleaned up from webservers if DAG file is removed from the scheduler
> -----------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-5523
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5523
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: webserver
>    Affects Versions: 1.10.5
>            Reporter: Dan Davydov
>            Priority: Major
>         Attachments: Screen Shot 2019-09-19 at 4.39.24 PM.png
>
>
> DAGs are never removed from the DB if the DAG file used to generate the DAGs is removed. This causes the webserver to accumulate broken dag rows (see attached screenshot).
> The scheduler should delete all DAGs from the DAG table with files that no longer exist when it scans the DAGs folder for files.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)