Audit records deletion batch support

When the audits record deletion expires it also cleans up the taxonomies table. Neither of these deletes are “batched” through the rails command:

Expected outcome:
This should be “batched” similar to reports and other cleanup tasks to ensure it does not “time out” in the rails console/mariadb and not complete, or lock for extended periods of time.

Foreman and Proxy versions:

Foreman and Proxy plugin versions:

Thank you for reporting this issue! could you please open an issue on our redmine tracker and perhaps even contribute a PR fixing it?
If you have a very large audits table, would also be useful getting some timings from it comparing deletion before and after the change.

I’ve opened Feature #26053: Audit records deletion batch support - Foreman

Thanks for the sanity check that I’m not just missing x/y/z functionality already built in!

1 Like