-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
limit job attempt history retention #4111
Comments
Maybe keep minimum 1 job that persisted state and minimum last 10 jobs for a connection. Then we can truncate at 30 days maybe? Unclear if this should happen on a regular basis or only when we're exporting data. |
Some more context. In the (much of the below is a restatement of what Jared already mentioned) I think our goal is to run a regularly recurring job (another thread in the
The key here is that we never want to prune jobs such that future jobs can't run with the correct state information. So in the case where a job only runs once a month or something like that, we don't want to accidentally delete its state. Jobs can output state even if they failed. so for the 3rd criterion we need to actually look into whether state exists or not. |
Currently we don't limit job attempt retention. This can contribute to problems with archive exporting/importing. See: #4086
Any community input on this is appreciated. I would guess that something like 30 days is sufficient unless someone is using the history for something outside of the UI which we aren't aware of.
The text was updated successfully, but these errors were encountered: