Is there an easy way to delete a DAG and everything associated with it?

538 views
Skip to first unread message

tomas....@unacast.com

unread,
May 29, 2018, 5:20:15 PM5/29/18
to cloud-composer-discuss
The subject should be clear enough. Everywhere I look it seems like I have to write a script that does something against the DB, but sure there must be an easy way to delete a DAG and everything with it? 

Wilson Lian

unread,
Jun 4, 2018, 4:41:12 PM6/4/18
to tomas....@unacast.com, cloud-composer-discuss
Hi,

This is a known limitation of Airflow that is planned to be patched in Airflow 2.0 (https://issues.apache.org/jira/browse/AIRFLOW-1002).

For a pre-baked solution, you could try this DAG: https://github.com/smeyn/professional-services/blob/80120ade2f021efafa30bad0d919c78fc44f0dcd/application-development/composer/dags/remove_dag.py.

best,
Wilson

On Tue, May 29, 2018 at 2:20 PM, <tomas....@unacast.com> wrote:
The subject should be clear enough. Everywhere I look it seems like I have to write a script that does something against the DB, but sure there must be an easy way to delete a DAG and everything with it? 

--
You received this message because you are subscribed to the Google Groups "cloud-composer-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-composer-discuss+unsubscri...@googlegroups.com.
To post to this group, send email to cloud-composer-discuss@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-composer-discuss/8103dec1-0709-4267-90b4-5c3ec9035136%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages