The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
Have you considered running this as a true cron job and not a vBulletin Scheduled Task?
And, you said it does 1000 posts... is this every single time... every minute? Why 1000? If it's an arbitrary number, have you considered writing to the database the last postid you did so that you only need to run this for new posts instead of 1000 posts each time? |
#12
|
|||
|
|||
Lynne,
Running it as a true cron job would be ideal since it can just run for hours. I was under the impression that I couldn't do that with vBulletin. I know how to set up true cron jobs, but how would I set it up such that it will run through vBulletin? Any documentation can help. I wasn't able to find anything that related to my problem via search. Regarding your question, it actually does grab 1000 new posts each time. We have a flag called "fixed" and that flag is set to 1 for posts that have been corrected. We skip those. The reason why we're doing this is because we want to correct all posts in the database. A lot of posts were posted way back since ~2005 or possibly earlier (I just came on board a few months ago). Our current engine corrects new posts, but we want to correct all the previous posts (~3.2 million) of them. Choosing 1000 would make sense since we want to be done with it at a reasonable time. I'm looking forward to your help with setting this up as true cron job that will work via vBulletin. Thank you in advance. |
#13
|
||||
|
||||
You wouldn't need to run it "through" vbulletin, your cron is working on the database which is a stand alone that vbulletin queries, so unless your spell engine is only integrated in to vbulletin and cant be used as a stand alone you should be fine to set up a true cron.
|
#14
|
||||
|
||||
You may want to see how this person did it - https://vborg.vbsupport.ru/showthread.php?t=164477 There really isn't a reason you can't run it as a real cron job. My guess would be you just need to add some lines of code to connect to the database and then the rest of your code should work fine.
|
#15
|
||||
|
||||
I'd suggest doing smaller posts in batches, if your post table is myisam, you might want to change it to innodb, while this task is running anyway.
|
#16
|
|||
|
|||
Thank you everyone for your responses. I'll consider these options and will report back on the results.
--------------- Added [DATE]1383870166[/DATE] at [TIME]1383870166[/TIME] --------------- Simon, The spell correct engine is a plugin for vBulletin hence why I need it to run via vBulletin. --------------- Added [DATE]1383871817[/DATE] at [TIME]1383871817[/TIME] --------------- Quote:
--------------- Added [DATE]1383872819[/DATE] at [TIME]1383872819[/TIME] --------------- From more troubleshooting, it appears the issue is related to an existing plugin. I'll have to figure out which one. Thank you everyone for your help. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|