N
nocte
Guest
Here's the method:
PHP:
Read more
Continue reading...
PHP:
Code:
public function hasStoppedJobs(): bool
{
$pending = $this->queuePending(false);
if (!$pending)
{
return false;
}
$jobRunTime = $this->app['job.runTime'];
if (!$jobRunTime)
{
return false;
}
if ($jobRunTime + 3600 <= \XF::$time)
{
// scheduled run time exceeded by an hour so jobs appear to be stuck
return true;
}...
Read more
Continue reading...