Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-26-2010, 08:44 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Cron every 1 minute

Hello, I create a cron job and it should be execute every 1 minute (ok, I know that it's not good idea, but my client say every 1 minute)

Reading the Help, I set this with "*", but I see that no execute every 1 minute (I press Ctrl+F5 every 30 second to launch the cron job)

maybe I not setting properly, or maybe I need test this in a real forum (I'm using testing forum with me as user)

Thank You
Attached Images
File Type: gif cron_job.gif (35.4 KB, 0 views)
Reply With Quote
  #2  
Old 12-26-2010, 09:06 PM
BirdOPrey5's Avatar
BirdOPrey5 BirdOPrey5 is offline
Senior Member
 
Join Date: Jun 2008
Location: New York
Posts: 10,610
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Scheduled Tasks are not "real" cron jobs. scheduled talks will only run when there is activity on the forum, specifically when the footer is loaded. If you're the only one on the test server and you don't do anything for 10 minutes, the tasks won't run at all... they only can run in response to user activity.

If you need something to run all the time regardless of user activity then you need to setup a real cron job, usually from your cpanel if you have one.
Reply With Quote
  #3  
Old 12-26-2010, 09:24 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BirdOPrey5 View Post
Scheduled Tasks are not "real" cron jobs. scheduled talks will only run when there is activity on the forum, specifically when the footer is loaded. If you're the only one on the test server and you don't do anything for 10 minutes, the tasks won't run at all... they only can run in response to user activity.

If you need something to run all the time regardless of user activity then you need to setup a real cron job, usually from your cpanel if you have one.
Yes, I knew it was "unreal cron" and only work with users activity , for that reason I used CTRL+F5 every 30 seconds

The forum have a lot of users, for have something exactly I going to use cron jobs in cPanel

Thank You for you time
Reply With Quote
  #4  
Old 12-26-2010, 09:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you know it's not running? Are you logging it? Are you looking in the page source everytime you refresh to see if a new job is being set to run - cron.php?rand=xxxxxxx - is xxxxx always different?
Reply With Quote
  #5  
Old 12-26-2010, 10:10 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
How do you know it's not running? Are you logging it? Are you looking in the page source everytime you refresh to see if a new job is being set to run - cron.php?rand=xxxxxxx - is xxxxx always different?
maybe this is working, but just in admincp-> cron jobs

I see:

(current time 6:20 in footer)
Next Time to Execute the CRON: 6:21

REFREST (F5, Ctrl+F5 in AdminCP)
(current time: 6:21)
Next Time: 6.22 (ok, Do the Cron)

REFREST
(current time: 6:23)
Next Time: 6.22 (Execute?)

REFREST
(current time: 6:24)
Next Time: 6.22 (Execute?)

Maybe it's working... and maybe in AdminCp need time to update, but the Addons need execute every 1 minute exactly (Sell and Buy shares,Stock exchange)

I need to know if my setting it's correct


Thank You
Reply With Quote
  #6  
Old 12-26-2010, 10:31 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is just a guess, but I'm thinking maybe refreshing an admincp page won't run the cron jobs - maybe try refreshing a forum page in a different browser window.
Reply With Quote
  #7  
Old 12-26-2010, 10:33 PM
Jhonnyf's Avatar
Jhonnyf Jhonnyf is offline
 
Join Date: Nov 2007
Location: In my mind
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
This is just a guess, but I'm thinking maybe refreshing an admincp page won't run the cron jobs - maybe try refreshing a forum page in a different browser window.
yes, I refresh the index and browing into the forum, after that i see Admincp
Reply With Quote
  #8  
Old 12-26-2010, 10:36 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh...sorry, I see now that that's what you meant.
Reply With Quote
  #9  
Old 12-26-2010, 11:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If the time is changing, then it is running. But, you could also use the options I posted to find out.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:35 PM.


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.06564 seconds
  • Memory Usage 2,258KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete