View Full Version : Sceduled tasks while forum is turned off
JamesAB
05-21-2015, 02:12 PM
Are scheduled tasks supposed to still run when the forum is turned off?
Or are scheduled tasks intentionally paused by default when the forum is turned off?
Thanks,
James
Well, I don't think they're paused by turning the forum off, but they do depend on forum traffic to run (and probably human traffic since I'm guessing that spiders wouldn't bother requesting the cron image). The "board is unavailable" message does seem to have the cron image on it so even with members only seeing that message the scheduled tasks should run, but maybe not as often, especially if you have few active members.
JamesAB
05-21-2015, 03:06 PM
This is my test forum I'm dealing with right now. So it doesn't get much traffic besides me testing out modifications.
It appears that none of my scheduled tasks have run for the past 48 hours.
I haven't changed the footer templates at all. The cron image link is still there.
I have been adding my own scheduled tasks, which seem to run find when I manually run them from the AdminCP.
This is a mystery...
ForceHSS
05-21-2015, 03:49 PM
If you manually run then yes they will run
JamesAB
05-21-2015, 06:51 PM
After doing some trouble shooting, I found out that the scheduled tasks do not run on my forum when it is turned off. I'm guessing that's the intended behavior.
When the forum is turned on again, scheduled tasks run at their intended intervals for "today", but do not play catchup for the scheduled tasks they missed in the past.
What was most confusing to me, is that I saw things in the Scheduled Task Manager that said "Next Time" -> "Yesterday12:10 AM" which indicated the last time that task was scheduled to run before the forum was turned off.
Hmm...well sorry to mislead you. I usually check the code before posting something like that, but I was in a hurry so I just assumed based on the fact that cron.php was there, and in cron.php there doesn't seem to be any check for the forum being turned off. To be honest I tried to check further into the code and I still don't see any check, but I guess I'm missing something. It does kind of make sense that they should be "paused" since you normally turn off the forum to limit activity.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.