On 15.12.2008 14:28, Deepak Gole wrote: > On Sat, Dec 13, 2008 at 10:22 PM, Robert Klemme > <shortcutter / googlemail.com>wrote: >> Can you be more specific what you really mean by this? How does it fail? > >>>> Well when I start the backgroundrb processes then for next few or next > 1,2 days everything works well, But after some time worker just gets hangs I > can see there process ID till active. > But No output. I examine logs also but didn't get anything in log files. I > am not getting a single clue of what went wrong? Apparently. Since I don't know the code I cannot really make sense of what you report. It does seem weird though that apparently you keep your workers active for several days. Do you actually keep them busy or do you just keep them around? >> So I have >>> tried Starling & Workling but those worker doesn't run *parallely. >>> >> Maybe you used it not in the proper way. From what I read on the web site >> doing work concurrently is all that S+W is about. >> >>>> I have created 2 workling workers each worker has one method which just > logs the some o/p and then I ran them from console. When I examined the log > files I got those o/p sequentially > > class MyWorker < Workling::Base > > def sample_one(options) > 5.times do |i| > logger.info "====Hi from 1st worker===============" end > end > end > end > > class MySecondWorker < Workling::Base > > def sample_twooptions) > 5.times do |i| > logger.info "====Hi from 2nd worker===============" end > end > end > > end > > I got following o/p > > ====Hi from 1st worker=============== > ====Hi from 1st worker=============== > ====Hi from 1st worker=============== > ====Hi from 1st worker=============== > ====Hi from 1st worker=============== > ====Hi from 2nd worker=============== > ====Hi from 2nd worker=============== > ====Hi from 2nd worker=============== > ====Hi from 2nd worker=============== > ====Hi from 2nd worker=============== > > > I was expecting something like this > > ====Hi from 1st worker=============== > ====Hi from 2nd worker=============== > ====Hi from 1st worker=============== > ====Hi from 2nd worker=============== Well, there is no guarantee that messages are actually intermixed as you expect - especially not with Ruby's green threads - if that's what Workling is using. Cheers robert