[RSS Feed/News] AbstractRebuildJob can result in tasks running ad infinitum

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
If getNextIds takes too long, as can happen with especially large or complex tables, run will exit without attempting to rebuild any of the IDs. That will result in $data->data['start'] being left unchanged, and run will keep retrying with the same $this->data['start'] value over and over again.

Logic from \XF\Job\AbstractRebuildJob::run:
PHP:

Code:
public function run($maxRunTime)
{
   $startTime = microtime(true);

   // ...

   $ids =...

Read more

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