Project

General

Profile

Actions

Feature #16922

closed

cronjob to clear old tasks

Added by Ivan Necas about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

A job that will clear old tasks. This works well and helps significantly with issues like slow dashboard loading due to repo sync lookup times, but users need to remember to run the cleanup periodically.

Ideally, if the job was run via cron (similar to orphan task cleanup), users would not hit as many issues related to large numbers of old tasks.


Related issues 3 (0 open3 closed)

Related to Foreman - Bug #17495: Align foreman configuration report expiry with Task expiryClosedMarek Hulán11/27/2016Actions
Related to Installer - Bug #20819: Allow enabling foreman tasks task cleanup from the installerClosedAdam Ruzicka08/31/2017Actions
Blocked by foreman-tasks - Feature #20352: Backup foreman tasks when they are deletedClosedMartin Bacovsky07/19/2017Actions
Actions #1

Updated by Ivan Necas about 8 years ago

  • Subject changed from cronjob to clear old tasks to cronjob to clear old tasks
  • Target version set to 113
Actions #2

Updated by Ohad Levy about 8 years ago

  • Priority changed from Normal to High

knowing the amount of pain we had in puppet with expiring reports, I would raise this priory to high now that foreman core uses tasks to import reports.

Actions #3

Updated by Ohad Levy about 8 years ago

  • Related to Bug #17495: Align foreman configuration report expiry with Task expiry added
Actions #4

Updated by Pat Riehecky about 8 years ago

It would be nice if there was a way to set the length of time to keep the entries in the UI, rather than hard coded in the cronjob

Actions #5

Updated by Ivan Necas almost 8 years ago

  • Bugzilla link changed from 1384548 to 1425471
Actions #6

Updated by Ivan Necas almost 8 years ago

  • Target version changed from 113 to 1.12.0
Actions #7

Updated by Ivan Necas almost 8 years ago

  • Target version changed from 1.12.0 to 1.12.2
Actions #8

Updated by Martin Bacovsky almost 8 years ago

  • Assignee set to Martin Bacovsky
Actions #9

Updated by Ivan Necas over 7 years ago

  • Target version changed from 1.12.2 to 1.12.4
Actions #10

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/247 added
Actions #11

Updated by Ivan Necas over 7 years ago

  • Blocked by Feature #20352: Backup foreman tasks when they are deleted added
Actions #12

Updated by The Foreman Bot over 7 years ago

  • Pull request https://github.com/theforeman/foreman-tasks/pull/278 added
Actions #13

Updated by Adam Ruzicka over 7 years ago

  • Related to Bug #20819: Allow enabling foreman tasks task cleanup from the installer added
Actions #14

Updated by Martin Bacovsky over 7 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #15

Updated by Ivan Necas over 7 years ago

  • Status changed from Closed to Ready For Testing
  • Pull request deleted (https://github.com/theforeman/foreman-tasks/pull/247)
Actions #16

Updated by Anonymous over 7 years ago

  • Status changed from Ready For Testing to Closed
Actions #17

Updated by Ivan Necas over 7 years ago

  • Translation missing: en.field_release set to 307
Actions

Also available in: Atom PDF