Commit 147f2207 authored by catch's avatar catch
Browse files

Issue #1630576 by nexusnovaz, jhodgdon, catch: Cron reports it's done long before it really is done

parent 52a4ee46
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -166,6 +166,9 @@ public function run() {
      // Release cron lock.
      $this->lock->release('cron');

      // Add watchdog message.
      $this->logger->info('Cron run completed.');

      // Return TRUE so other functions can check if it did run successfully
      $return = TRUE;
    }
@@ -183,7 +186,6 @@ protected function setCronLastTime() {
    // Record cron time.
    $request_time = $this->time->getRequestTime();
    $this->state->set('system.cron_last', $request_time);
    $this->logger->info('Cron run completed.');
  }

  /**