Closed sergiogcx closed 4 years ago
I found this article in Hasura:
https://hasura.io/docs/1.0/graphql/manual/event-triggers/clean-up.html
We may need a separate DAG that runs every week or every few days at night. It may also be possible to export the logs, but I don't really see much value in that idea because we can always run an event as needed. For production log history may be more valuable than in staging, that is one thing to consider.
I've created a PR for this purpose: https://github.com/cityofaustin/atd-airflow/pull/26
It's working by the way:
Before Execution:
Execution:
After:
Events can take up a large amount of data in Postgres, it could make Postres slower and this can also bloat the size of the backups.
If possible, it might be a good idea to create backups of the event logs separately, then remove them from Hasura entirely.