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 job run cleaner #2866

Merged
merged 2 commits into from
Feb 1, 2023
Merged

Add job run cleaner #2866

merged 2 commits into from
Feb 1, 2023

Conversation

johanbrandhorst
Copy link
Collaborator

@johanbrandhorst johanbrandhorst commented Jan 31, 2023

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.

@johanbrandhorst
Copy link
Collaborator Author

I've confirmed manually that the migration works (going from 0.11.2 -> this version) and deletes the completed job_runs as appropriate.

Copy link
Collaborator

@louisruch louisruch left a 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/daemon/controller/controller.go Show resolved Hide resolved
internal/scheduler/cleaner/cleaner_job.go Outdated Show resolved Hide resolved
internal/scheduler/cleaner/cleaner.go Show resolved Hide resolved
internal/scheduler/cleaner/cleaner.go 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.
Copy link
Collaborator

@louisruch louisruch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants