cleanup jobs not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • etw5200
    Junior Member
    • Jan 2018
    • 20

    cleanup jobs not working

    i have an issue with the scheduled jobs list. the old jobs that are in Administration>Scheduled Jobs> Job List will not clear out and i have over 45,000 listed there. my cleanup.php is set to 2 days, and the cleanup job is set to 1 1 * * 0. any help would be appreciated
  • etw5200
    Junior Member
    • Jan 2018
    • 20

    #2
    Any help would be appreciated

    Comment

    • tanya
      Senior Member
      • Jun 2014
      • 4308

      #3
      Hello
      When did your cleanup job successful run? (you can find it in the job log)
      What execution time has the oldest job? (Order ASC by execution time in All Job list view)

      Comment

      • etw5200
        Junior Member
        • Jan 2018
        • 20

        #4
        it says pending but never ran. all other jobs have ran

        Comment

        • yuri
          Member
          • Mar 2014
          • 8440

          #5
          1. Set scheduling 1 1 * * * (w/o ending zero).
          2. Add to data/config.php
          'cleanupJobPeriod' => '1 week'

          See https://github.com/espocrm/espocrm/b...bs/Cleanup.php

          By default it runs once a month and removes jobs 1 month old. 45,000 is a normal number for jobs.
          Last edited by yuri; 02-23-2018, 02:54 PM.
          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

          Comment

          • etw5200
            Junior Member
            • Jan 2018
            • 20

            #6
            thanks! ill update this and let you know the outcome. Thanks again

            Comment

            • etw5200
              Junior Member
              • Jan 2018
              • 20

              #7
              that worked! thanks!

              Comment

              Working...