Skip to content
Snippets Groups Projects
Commit 6bbf792f 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 c1f7b85d
No related branches found
No related tags found
No related merge requests found
...@@ -104,6 +104,9 @@ public function run() { ...@@ -104,6 +104,9 @@ public function run() {
// Release cron lock. // Release cron lock.
$this->lock->release('cron'); $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 so other functions can check if it did run successfully
$return = TRUE; $return = TRUE;
} }
...@@ -121,7 +124,6 @@ protected function setCronLastTime() { ...@@ -121,7 +124,6 @@ protected function setCronLastTime() {
// Record cron time. // Record cron time.
$request_time = $this->time->getRequestTime(); $request_time = $this->time->getRequestTime();
$this->state->set('system.cron_last', $request_time); $this->state->set('system.cron_last', $request_time);
$this->logger->info('Cron run completed.');
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment