The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Some (most) cron jobs not running?
Hi
I've just written a cron job which writes a html file once a minute. It funs fine from "run now" button, and shows correctly in the list for the next time its due to run, but doesn't actually run on its own. On noticing this, I've checked the logs and it appears that lots of my crons (note, not crons written by me - this is my first) are not running, although some are running fine. Any helps would be appreciated. Simon |
#2
|
||||
|
||||
Is this a vBulletin Scheduled Task or a Unix Cron?
|
#3
|
||||
|
||||
Cron jobs in vbulletin aren't "true" cron jobs in the sense that they must be initiated by a pageload in your forums which contains the cron.gif image. Most every page contains thiw within the footer template. Is it possible that your forum isn't busy enough (very few page requests) which mght cause cron.gif to not be called?
try changing the time for one of your cron jobs to 5 minutes ahead, then wait 10 minutes and check your cronlog. If it doesn't show as having run, then go to your forums and refresh the main page or threadvier (whatever) then wait another couple minutes and check your cronlog again. Did it run now? |
#4
|
|||
|
|||
Sorry, scheduled task.
Hi Antivirus Thanks for your post. Yes, the forum is busy enough (approx 500 users online). Now. Interestingly, it has started to work this morning. I *believe* the resolution came with me changing some paths in the php file. Does the file run from a different directory location when you click "Run Now" compared to when it runs automatically? It also may be that the other "crons" are running, but not logging and I've just assumed that because this one wasn't running, the others weren't. Sorry, this could have just been me being a thicko! |
#5
|
||||
|
||||
correct, when you click run now, it calls the scheduled task (cron file) as opposed to the cron.gif image calling the scheduled task. Perhaps you customized your footer template and the cron image is no longer there? Check your footer template in AdminCP->StyleManager and see if you're using the default template or a customized one.
|
#6
|
|||
|
|||
Hi
I would have thought that if the cronimage.gif wasn't displaying properly, then none of the scheduled tasks woudl run? It does appear to be working now anyway, and the resolution seemed to be putting changing the code in my scheduled task php script from : '/includes/flatfile.html' to DIR . '/includes/fliatfile.html' Cheers, and thanks for everyone's replies. Simon |
#7
|
||||
|
||||
ok, glad you got it sorted out
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|