Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add graphql mutations to delete builds and invocations #80

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

trey-ivy
Copy link
Collaborator

When running in a production environment with lots of invocations, builds and targets, the database can bloat up pretty big pretty quickly, which has storage cost and performance implications. A mechanism is needed to manage the size of the database.

This PR adds a few graphql API endpoints to manage invocations and builds. It also updates the backend schema to include cascading delete relationships as appropriate.

New Methods:

  • deleteInvocation (By Id)
  • deleteBuild (By Id)
  • deleteInvocationsBefore(takes a time, deletes all invocations that finished before that time)
  • deleteBuildsBefore(takes a time, deletes all builds that started before that time)

image

This process does not currently support blob cleanup. I plan to add that in a future PR. Also in a future PR I plan to add an option to configure and run a process on a schedule to automate this task

Also updates golden files as appropriate

@trey-ivy trey-ivy merged commit d3aaeb6 into main Feb 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant