Log in

View Full Version : New Cron/Scheduled Task Problem


Our House
08-17-2007, 02:44 PM
Hi guys,

I have set up a custom scheduled task that works properly when clicking the "Run Now" button. However, it doesn't trigger automatically like the other scheduled tasks do.

It's set to run every minute, and when the forum is refreshed, "Next Time" is properly updating to reflect the correct time...but it's not running or logging.

A coder friend of mine created a different customized script for my board and the same thing is happening on his as well.

Everything about these two cronjobs is working except for the actual automated execution of them. Other cronjobs work across the board.

Any idea why this is happening?

Lynne
08-17-2007, 04:16 PM
I would check to make sure the owner/group of the file and the permissions are the same as the cron scripts that are working.

EnIgMa1234
08-17-2007, 04:35 PM
Can I see the code?

Our House
08-17-2007, 06:09 PM
I would check to make sure the owner/group of the file and the permissions are the same as the cron scripts that are working.
We just checked and they're all the same.

Can I see the code?
They're pretty big files. Is there any part in particular you'd like to know about?

Antivirus
08-18-2007, 12:14 AM
Best to post the whole code the issue which might be causing the problem could be anywhere...

The issue might also be related to your site's traffic. The way vbulletin runs scheduled tasks is by displaying the image cronimage.gif within the footer template whenever a page in your forums loads (or is refreshed). If the forum doesn't have enough traffic to exec all scheduled tasks, then it could simply be a, issue of the scheduled task hasn't yet been tole to run.

Check your scheduled tasks log within Admincp and see if the scheduled tasks are all caught up

Paul M
08-18-2007, 09:44 AM
Running a cron job from the ACP and running one in reality are not quite the same - you are running the code in a different environment. Something that runs from the ACP may not work when triggered by the actual cron system.

No one is going to be able to help you unless you post (or attach) the actual code.

Our House
08-20-2007, 12:41 AM
Hi Guys,

Sorry about the code length. I'm attaching the file here.

Any help is appreciated.

Thanks,
OH