vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   New Cron/Scheduled Task Problem (https://vborg.vbsupport.ru/showthread.php?t=155494)

Our House 08-17-2007 02:44 PM

New Cron/Scheduled Task Problem
 
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

Quote:

Originally Posted by Lynne (Post 1319710)
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.

Quote:

Originally Posted by EnIgMa1234 (Post 1319725)
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

1 Attachment(s)
Hi Guys,

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

Any help is appreciated.

Thanks,
OH


All times are GMT. The time now is 04:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00955 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete