-
Notifications
You must be signed in to change notification settings - Fork 277
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 job run cleaner #2866
Add job run cleaner #2866
Conversation
e2329a7
to
454b170
Compare
I've confirmed manually that the migration works (going from 0.11.2 -> this version) and deletes the completed job_runs as appropriate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for getting onto this!
internal/db/schema/migrations/oss/postgres/62/01_job_run_index.up.sql
Outdated
Show resolved
Hide resolved
The new job cleans job runs older than a configured interval. Configure the job to clean jobs older than 1 minute.
454b170
to
c2ff878
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HCP Boundary reports that the job_runs table is filling up with data, and this is something that will be affecting customers too. Create a cleaner job that cleans up old job runs.