Metro-Records / la-metro-dashboard

An Airflow-based dashboard for LA Metro
4 stars 0 forks source link

Add meta DAGs for cleaning up Airflow resources #27

Closed jeancochrane closed 4 years ago

jeancochrane commented 4 years ago

Overview

Following the advice in https://blog.clairvoyantsoft.com/automated-maintenance-for-apache-airflow-8d844f32737d, this PR defines two meta-DAGs, airflow_db_cleanup and airflow_log_cleanup, that run daily and clean up old logs and database entries for the app.

Notes

As part of debugging for this PR, I also manually deleted about 4 GB of logs from the staging server. This should give us enough room to cover us while we review and deploy this change.

Testing instructions