[RSS Feed/News] XF\Job\Manager::hasStoppedJobs() does not work correctly outside of UTC timezone

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Here's the method:

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

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom