Extend cron check for 12 hours

This commit is contained in:
Nabeel Shahzad 2021-02-13 15:17:16 -05:00
parent 3f3b63da6f
commit a6f62045c4
2 changed files with 2 additions and 2 deletions

View File

@ -92,6 +92,6 @@ class CronService extends Service
// More than 5 minutes... there's a problem
$diff = $dt_now->diff($dt);
return $diff->i > 5;
return $diff->i > 60 * 12; // Hasn't run for 12 hours
}
}

View File

@ -4,7 +4,7 @@
<div class="content">
@if($cron_problem_exists)
<div class="alert alert-danger" role="alert">
There was a problem running the cron; make sure it's setup and check logs at
The cron has not run in more than 12 hours; make sure it's setup and check logs at
<span class="text-monospace bg-gradient-dark">storage/logs/cron.log</span>.
<a href="{{ docs_link('cron') }}" target="_blank">See the docs</a>
</div>