vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need Cron Suggestion (https://vborg.vbsupport.ru/showthread.php?t=79729)

AN-net 04-10-2005 07:50 PM

Need Cron Suggestion
 
I want to use cron to update select information on my board a select day of the week. my problem is that the source i use to update that information only allows 10 results at a time and 1-2 second delay between each query. What I want to do is be able to do the entire table at intervals of 10. how would i do this?

sorta like when you run update user titles script where u can choose how many users to update in a cycle

Marco van Herwaarden 04-10-2005 08:07 PM

Just put a:
PHP Code:

sleep(NUMBEROFSECONDS); 

in your script to pause a few seconds between each request.

AN-net 04-10-2005 08:17 PM

k but how would i like make it split everything into pages without having the url change into scirpt.php?page=xx or is that how i should do it?

AN-net 04-11-2005 10:14 PM

ok still awaiting an answer if its ok to use redirect with vb cron...

Marco van Herwaarden 04-12-2005 03:12 AM

No i think, and on second thought my suggestion to use a sleep is also not a good one.

Best would be to keep somehow track of progress, and just continue where you left each time the job is run.

AN-net 04-12-2005 07:21 PM

drrss, well i dont want to create a billion cron jobs if say i have 1,000 things to update>_> any other suggestions...

AN-net 04-16-2005 02:45 PM

just bumping to see if there any more suggestions;)

AN-net 04-20-2005 08:05 PM

bumping up again for suggestions please:)

Paul M 04-20-2005 08:21 PM

Sorry, I don't really understand what you are trying to do.

AN-net 04-20-2005 10:03 PM

im trying to design a script that will grab x items from a table then contact a web service to get updated information on those x amount items. the problem is that the web service only allows 1 query per x seconds and can only return 10 items per query but i want to do the entire table which has 200+ items. so that is my problem...


All times are GMT. The time now is 07:40 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.01077 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_php_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