Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-69118

Create a quartz job to be able to delete the old BackgroundTask entries from the database

Details

    Description

      Using the pattern of LPS-53931

      On master and 7.0, the scheduled job that purges old ExportImportConfigurations takes care of purging the related BackgroundTasks as well, so this is not a problem there. But unfortunately there is no ExportImportConfiguration model on 6.2, it was a new feature for 7.0. So we need to make a unique solution for purging old BackgroundTasks on 6.2.

      Test steps:
      1. Set

      background.task.clean.up.check.interval=1
      background.task.clean.up.keep.count=2
      

      in you portal-ext.properties
      2. Turn on staging and do publications to live several times (more than 2 times)
      3. Check the backgroundtask table in the database: there should be a record for each publications
      4. Wait an hour, don't shut down the portal
      5. Check the backgroundtask table in the database: only the latest 2 background tasks should exist

      Attachments

        Issue Links

          Activity

            People

              csaba.turcsan Csaba Turcsan
              gergely.mathe Gergely Mathe (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                5 years, 36 weeks ago

                Packages

                  Version Package
                  6.2.X EE