nocte
Well-known member
- Affected version
- 2.2.8 Patch 1
Here's the method:
If I am outside of UTC timezone, jobs won't run at the the time they are supposed to (I think this has already been discussed). So, if my timezone is UTC+2 and I set a job to run at 14 pm, it will actually run at 16 pm. For the above method this is 1 hours too late (
Result: If you have any jobs, that are more than 1 minute (not 1 hour as intended) too late, you will see this in your admin cp index:
Disclaimer: did not look too much into the code, but I am quite sure, this is a bug as described. It matches my experience.
@Sim talked about the 1 minute delay as well: https://xenforo.com/community/threads/cli-job-cron-runner.183700/post-1563676
PHP:
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;
}
else
{
return false;
}
}
If I am outside of UTC timezone, jobs won't run at the the time they are supposed to (I think this has already been discussed). So, if my timezone is UTC+2 and I set a job to run at 14 pm, it will actually run at 16 pm. For the above method this is 1 hours too late (
if ($jobRunTime + 3600 <= \XF::$time)
).Result: If you have any jobs, that are more than 1 minute (not 1 hour as intended) too late, you will see this in your admin cp index:
Disclaimer: did not look too much into the code, but I am quite sure, this is a bug as described. It matches my experience.
@Sim talked about the 1 minute delay as well: https://xenforo.com/community/threads/cli-job-cron-runner.183700/post-1563676