Repository navigation
How to clenup table event_logs? #12985
|
Hi. I noticed that the dagster database takes up a lot of disk space. The largest table is event_logs (99% size) | event_logs | 18 GB | How can I clear these logs? Can I set a retention period for these logs? |
Answered by
tacastillo
Mar 16, 2023
Replies: 2 comments 9 replies
|
Hey Vasyl! Have you seen this post on how to programmatically clean up the event logs? The summary is that you can use I don't believe there is a way to set a retention policy, but I'll take that feedback back to the team! If that satisfies your needs, I'll mark this discussion as a duplicate of that linked one! |
7 replies
Answer selected by
VA-PLE
|
There is now this? https://docs.dagster.io/deployment/oss/oss-instance-configuration#data-retention |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#12047
Hey Vasyl! Have you seen this post on how to programmatically clean up the event logs? The summary is that you can use
DagsterInstance.get(), fetch the run logs from there, and then delete those runs and their logs.I don't believe there is a way to set a retention policy, but I'll take that feedback back to the team!
If that satisfies your needs, I'll mark this discussion as a duplicate of that linked one!