FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » Suggestion: Update all Newsgroups on every run
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Suggestion: Update all Newsgroups on every run [message #166946] Fri, 06 April 2012 09:54 Go to next message
Multitool is currently offline  Multitool
Messages: 47
Registered: February 2012
Karma: 1
Member
add to buddy list
ignore all messages by this user
I notice that when scheduling NNTP updates via the task scheduler, only one newsgroup is updated each time the script is run. This means the minimum update interval for each group is effectively (the number of newsgroup imports defined) minutes.

So if you have, say, 30 forums, each synchronised to a newsgroup, each forum can only update once every 30 minutes, minimum.

Wouldn't it make more sense to update all the newsgroups on each run, and use a lock to make sure the next update can't start until the previous one has ended?

I know you can use a manual cron job to do this (which is what I've done) but it seems to make sense for this to be the normal behaviour?
Re: Suggestion: Update all Newsgroups on every run [message #166966 is a reply to message #166946] Tue, 10 April 2012 08:55 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
You can trigger the scheduler to run several times per minute. I.e. every 2 seconds to get through all your groups.
Re: Suggestion: Update all Newsgroups on every run [message #166973 is a reply to message #166966] Tue, 10 April 2012 12:47 Go to previous message
Multitool is currently offline  Multitool   United Kingdom
Messages: 47
Registered: February 2012
Karma: 1
Member
add to buddy list
ignore all messages by this user
naudefj wrote on Tue, 10 April 2012 13:55
You can trigger the scheduler to run several times per minute. I.e. every 2 seconds to get through all your groups.

How? The shortest time interval cron allows is 1 minute.

And I don't think using such a short interval would be practical anyway. You'd be constantly connecting and disconnecting from the NNTP server all the time. Much better to just update all groups on every run, and schedule runs at longer time intervals.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: button location
Next Topic: Synchronising Forum posts to NNTP - Retry after failure
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Oct 20 08:46:20 EDT 2017

Total time taken to generate the page: 0.00680 seconds