vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Cron every 1 minute (https://vborg.vbsupport.ru/showthread.php?t=255934)

Jhonnyf 12-26-2010 08:44 PM

Cron every 1 minute
 
1 Attachment(s)
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

BirdOPrey5 12-26-2010 09:06 PM

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.

Jhonnyf 12-26-2010 09:24 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2139354)
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

Lynne 12-26-2010 09:42 PM

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?

Jhonnyf 12-26-2010 10:10 PM

Quote:

Originally Posted by Lynne (Post 2139367)
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 :D


Thank You

kh99 12-26-2010 10:31 PM

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.

Jhonnyf 12-26-2010 10:33 PM

Quote:

Originally Posted by kh99 (Post 2139385)
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

kh99 12-26-2010 10:36 PM

Oh...sorry, I see now that that's what you meant.

Lynne 12-26-2010 11:36 PM

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


All times are GMT. The time now is 05:24 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.01163 seconds
  • Memory Usage 1,730KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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