Project

General

Profile

Actions

Bug #34737

open

Enable foreman::plugin::tasks::automatic_cleanup by default

Added by Evgeni Golov about 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Foreman modules
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

The installer can deploy a cronjob to clean up old tasks from the database.
This is enabled by default in the Satellite scenario, but not for Foreman and Katello.
We should change that.

Changing the default for new installations is easy.

Changing the default on upgrade requires a migration a la:

if !answers['foreman::plugin::tasks'].is_a?(Hash)
  answers['foreman::plugin::tasks']['automatic_cleanup'] = true
  answers['foreman::plugin::tasks']['cron_line'] = "45 19 * * *" 
end

This should be clearly documented in the release notes, so users can pass --foreman-plugin-tasks-automatic-cleanup false during upgrade, to avoid having the cronjob active.


Related issues 1 (1 open0 closed)

Related to foreman-tasks - Bug #34716: Dynflow msgpack migration possibly tries to slurp the entire table into memory before migrating itNewActions
Actions #1

Updated by Evgeni Golov about 2 years ago

  • Related to Bug #34716: Dynflow msgpack migration possibly tries to slurp the entire table into memory before migrating it added
Actions

Also available in: Atom PDF