vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=189)
-   -   If your scheduled tasks aren't working (https://vborg.vbsupport.ru/showthread.php?t=92632)

amykhar 07-20-2005 10:00 PM

If your scheduled tasks aren't working
 
I have seen some problems over at vbulletin.com about some scheduled tasks not running. Here is one possible fix.

If you are running an upgraded board, go to your scheduled tasks manager. Remove any scheduled tasks that are not installed by jelsoft and were not installed with a 3.5 modification.

The default ones that come with vbulletin are:
Daily Digest
Subscriptions
Daily Statistics Log
Event Reminder
Thread Views 07-10-2005
Hourly Cleanup #1
Attachment Views
Restore Temporarily Banned Users
Hourly Cleanup
User Promotions
Weekly Digest
Happy Birthday Email

One 3.5 mod I know of that adds one is my Velocity Modification.

If you are a 3.5 mod author and have created a mod that has an updated scheduled task, please let me know and I shall add it to this list.

Christine 07-21-2005 09:02 PM

I don't have any added, but mine still aren't working.

I went through and saved each of them, which put them back to current 'next run time' but they didn't run as scheduled.

I wonder if there is a mismatch on the cron image vs what is being called? Haven't looked though.

tamarian 07-21-2005 09:11 PM

vBouncer introduces 2 cron tasks, in 3.0.7 and in the 3.5 version.

vBouncer Clean
vBouncer Collect

Marco van Herwaarden 07-22-2005 04:55 AM

If you have problems with cron jobs not running, the first you could try is reverting your footer template.

amykhar 07-22-2005 05:54 AM

Did that. The scheduled task functions are running. The nextrun time is being updated and all that. It's just not running the actual code that it should run. BUT some tasks do work.

Marco van Herwaarden 07-22-2005 06:02 AM

Is this a 3.5 specific thing you are talking about? I do know that in 3.0 the cron handling got it's own strange things, for example in handling global variables.

tamarian 07-22-2005 11:39 AM

Amy, the tasks that fail to run by cron, do they actually run from the scheculed task manager by clicking "run now"?

amykhar 07-22-2005 01:28 PM

Yes. They do, Tamarian.

tamarian 07-22-2005 01:53 PM

Quote:

Originally Posted by amykhar
Yes. They do, Tamarian.

O.k. I think I've seen this before, the task runs from the rask manager, but fails to run as a cron.

Does the failed cron task file contain any function declaration(s)? If so, removing those functions and opting for a single block of code fixes this.

Marco van Herwaarden 07-22-2005 01:58 PM

I had the same problem with my Thread of the Week hack for 3.0.7.

If you use a global variable inside a function, things work strange. Best to pass all used variables as parameters to the functions.


All times are GMT. The time now is 02:36 PM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01137 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete