XenForo
Administrative
- Thread starter
- Admin
- #1
Here's the method:
PHP:
Read more
ادامه مطلب...
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
ادامه مطلب...