PDA

View Full Version : Do scheduled tasks still cause page loads to hang?


pl804
12-15-2015, 03:39 PM
I noticed back in 2006-07, there were several discussions of behavior where the footer pixel that triggers scheduled tasks caused some browser to hang while the task was being executed.

The best explanation (https://vborg.vbsupport.ru/showthread.php?p=2560530#post2560530) I read was from Analogpoint (who unfort hasn't posted here since 2007):

vBulletin has a great, built-in scheduled task system. It relies on an invisible pixel image output on the bottom of the forum pages to run the scheduled tasks (cron jobs). It works like this: When a user visits a page, vB checks to see if there are any pending cron jobs to execute. If there are, the cron image is inserted at the bottom of the page. That image, instead of displaying a real image, actually calls the scheduled task script which first returns the image, then proceeds to execute the scheduled task. This setup can cause the page load to hang, depending on what browser you're using. vB goes to great lengths to send the content-length header, then flush the image data to the browser. This causes some browsers to stop loading the page even though the script isn't finished running (it has to execute the cron job), since the data returned matches the content-length header. However, not all browsers are that smart. Sometimes they sit there with whatever indicator they have spinning, saying the page is still loading, until the scheduled task has finished.

Several options appeared to address this (including an AJAX modification by CodeMonkey), but then around 2010-11 or so, the discussions tailed off.

I've pinged those threads, but I'm curious if anyone here knows whether this is still an issue? I'm hoping that with current browser versions, this issue has hopefully been resolved.

Thanks in advance.

Dave
12-15-2015, 03:58 PM
I have never encountered such thing since I started using vBulletin (4).

Dragonsys
12-15-2015, 04:47 PM
that was an issue with vb3, vb4 does not have this problem that I have ever seen. Do you really need to ask this in several posts?

Max Taxable
12-15-2015, 04:49 PM
Personally I never saw this issue with v3 either. Obviously it was a issue though.

Dragonsys
12-15-2015, 04:58 PM
Personally I never saw this issue with v3 either. Obviously it was a issue though.

I did, with some of the non-mainstream browsers.
IMO, if you want to use a plugin which would resolve this, i would use this one (https://vborg.vbsupport.ru/showthread.php?t=164477) instead of the others which you posted on.

Max Taxable
12-15-2015, 05:06 PM
I did, with some of the non-mainstream browsers.
IMO, if you want to use a plugin which would resolve this, i would use this one (https://vborg.vbsupport.ru/showthread.php?t=164477) instead of the others which you posted on.I didn't post on any.

Dragonsys
12-15-2015, 07:43 PM
I didn't post on any.

I meant the OP ;)

pl804
12-15-2015, 09:31 PM
Thanks for the tip, Dragonsys. If this isn't an issue for the top 3-4 browsers, then I think we are ok w/o a plug-in to remediate this.

Apologies for pinging the legacy threads and creating this one. I created this one b/c the legacy threads were dormant for quite awhile, and also fairly deep in the forum hierarchy.

Appreciate any further confirmation from other members here re: whether anyone is seeing this with Chrome, Safari, FF, or IE/Edge.

Dragonsys
12-15-2015, 10:41 PM
I use the plugin I linked anyway, as it moves it into server cron, so slow boards still complete scheduled tasks on time.