Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2752

Cron tasks may run again when currently running

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.3.0-b1
    • Fix Version/s: 4.3.0
    • Component/s: None
    • Labels:
      None

      Description

      Cron tasks that take a long time to run can overlap and be re-run. For example, if a cron task runs every 5 minutes, but takes 6 minutes to complete, will attempt to be run a second time before the first one has finished.

      We prevent this behavior of re-running a currently-running task by making sure it has completed running before starting a new instance. For some cron tasks, however, logging information sets the task end date, which marks it completed and open to be run again.

      1. Fix the cron so that tasks are not marked completed unless and until they are

        Activity

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              18/Jul/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 58 minutes
              1h 58m

                Agile