search for: backgrounddrb

Displaying 20 results from an estimated 26 matches for "backgrounddrb".

Did you mean: backgroundrb
2007 Apr 05
4
backgrounddrb problem..
i''m having some problems getting a simple example going with backgrounDRB. after i set my worker to work i try to get back the result like this: w = MiddleMan.worker(key) w.items comes back as DRb::DRbUnknown (i have items as attr_reader in my worker and access it inside there with @items). the result is actually activerecord results in an array. when i change it so my worker puts
2007 Oct 24
4
Need advice - which version to use?
Greetings! I could use some advice on which version of BackgrounDrb to use in my current situation. I''ve implemented the initial, single-process multi-threaded version in a previous site, but have no experience with the new version. Current situation is as follows. The application involves personal health information and so has very stringent session management requirements. My
2006 Dec 07
2
backgrounDRb problems with results and MiddleMan
Hi there, I''ve been experimenting with implementing BackgroundDRb in my rails app but am running into some problems. The primary problem I''m getting is in cleaning up worker threads, or getting any kind of response out of worker threads. If try using the response function/hash in my Worker the worker will not execute reporting that response is an unkno...
2006 Sep 25
3
Engine Yard blog
Just received the news from Tom Mornini. Congrats Ezra for the new Engine Yard site and the blog you will be collaborating. Hope to read you there soon. http://www.engineyard.com/ Jonathan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060925/3f251fa4/attachment.html
2006 May 23
8
Can Win32 service more than one rails request at a time?
Hi, I am trying to run Mongrel on win32 to serve an internal rails application. We are accessing legacy data, and some transactions can take 5 to 10 seconds. This is holding up every other request. The -n does not seem to be supported on Win32. Am I missing something, or should I look elsewhere to serve my Rails app on win32? Thanks, Walt -- No virus found in this outgoing message.
2006 May 20
3
multithreaded action
I have an action in a controller that generates and returns a custom png-file, it goes something like this: def custompng #1 gather some userdata from params. #2 make a system call to an advanced java application that renders a png based on the custom data. stores the png on disk. #3 read the png into rails #4 send the png to the browser with method send_data #5 delete the
2006 Oct 04
0
first_run timezone weirdness
...me irb(main):001:0> Time.now => Wed Oct 04 20:37:24 CST 2006 irb(main):002:0> Time.parse(Time.now.to_s) => Thu Oct 05 10:37:30 CST 2006 Notice the 14 extra hours... Time.parse converted the time thinking CST meant -06:00 when my system time is actually on the +08:00 flavor of CST. So, BackgroundDRb::Rails#first_run creates a method that turns it from a Time.now into a (practical) Time.parse(Time.now.to_s) which will cause the first job to run 14 hours later than it should. There a few ways to fix this, right now the hack I''ve come up with is to pass in Time.now without the timezone...
2008 Jan 03
1
Trac not for general use?
Hi devs, I was trying to open a new ticket with a minor doc patch at the BackgroundDrb Trac (http://backgroundrb.devjavu.com/) and it seems like only admins have permission to do so. Is this intended? I read in the readme that patches should be mailed to this list, but I much prefer to use Trac since there''s already one set up. Any reason Trac is not open to registered Devj...
2008 Apr 11
2
Can I do this, question
I have a bunch of real uses for BackgroundDrb, but I also a very simple need to delay sending an email for about 5 seconds after a rails action completes. Basically I need to leave time for the DB to commit and sync to the slaves before the email can be sent Is BackgroundDb the right tool for this job? Any other suggestions on ways to i...
2008 May 20
1
Couple questions on BDRb and concurrent processing
My Rails site uses BackgroundDRb and I have a couple of questions: 1. Can someone point me to some sample code/examples for how to use thread_pool? The website doc says to add a line ====== pool_size 10 ====== in my Worker class which seems straightforward. I wasn''t able to understand this part though: ========= thread...
2007 Jan 12
2
Forking a process in Rails is messing up mongrel
I''m trying to run an external Ruby script from my Rails app. To do this i''m using this function def fork_with_new_connection(config, my_class = ActiveRecord::Base) pid = fork do begin my_class.establish_connection(config) yield ensure my_class.remove_connection end end Process.detach(pid) end Then, within my controller I do this:
2006 Jul 07
4
Problems with ActiveRecord in workers
Hi *, are there some special settings except of "load_rails: true" to make ActiveRecord models accessible within my workers? I''ve just installed the latest version of this great plugin, but I keep getting undefined method [] for #<DRb::DRbUnknown:0x12345> (line 105 in backgroundrb.rb) when one of the arguments for the worker is an ActiveRecord object. I assume that
2006 May 23
2
Can Win32 service more than one rails request at atime?
...[...] > > I realize that mongrel is not thread safe, I was hoping mongrel might > spawn a few processes and serve them in the background to emulate what I > wanted. > > > > Rails is not thread-safe. > Yes, that?s what I meant. <snip> > > The idea of the BackgroundDrb is that you perform these task > out-of-bound from the webserver/dispatcher/rails, so it could handle > other request and also you could "query" the status of the bulk > process. > Yes I am familiar with it, I was just trying to avoid it for simple tasks, like getting a list...
2006 Jun 15
12
Multithreading and DB access in Rails
I just tried writing some controllers, etc. that would allow me to start and monitor background tasks running in new (Ruby) threads, with the idea that I''d eventually manage long-running indexing processes that way. I can kick off such threads OK (by using Thread.new in a routine called by a controller), but it seems like Rails gets huffy if those background tasks and the ordinary
2007 Sep 28
6
Couple questions about backgroundrb
So, what''s the status of this project? I''m a little confused. The documentation at http://backgroundrb.rubyforge.org seems out of date. It refers to http://svn.devjavu.com/backgroundrb/tags/release-0.2.1, which doesn''t work. All I want is a way to easily set up tasks that should run periodically. Some stuff should run every 10 seconds, some stuff once a day, etc.
2006 Nov 13
2
Rails Camp Scaling Session notes
...end DB limits you, not the application. Lack of multithreading is raised as a question Case study: 1. Java vs Ruby – Say, 1000 simultaneous requests * Mongrel can multithread but can back up on slow request dispatch. * In cases when you have to wait for things to do stuff – backgrounddrb is used. This releases the lock on the worker. Also look at ‘merb’ – mongrel plus erb. First use for this is image upload. * In a typical rails environment image upload locks process. * Worst case – 100Meg mongrel processes, 1000threads simultaneously. That’s 100Gig, @ 16Gig p...
2009 Dec 24
0
can't return array object from worker
Hello all, Subject: Not able to return object from backgroundrb worker I am trying to use xmpp4r and backgroundrb for my chat application. I am able to create a connectnion with XMPP4r through a worker in backgrounddrb. I have the problem in returning the object from the worker to my rails application. My code is as follows: class ChatWorker < BackgrounDRb::MetaWorker require ''xmpp4r'' require ''xmpp4r/bytestreams'' require ''xmpp4r/roster/helper/roster'...
2006 Oct 17
1
Watch Folder for New Files
I''ve got an application that needs to take action when new files appear in a directory. From a rails application, what would the easiest/best way to implement this be? When a new file appears, I''ll need to call an action on a controller with the filename. Any ideas much appreciated. Regards, JD -- Posted via http://www.ruby-forum.com/.
2007 Jun 26
0
Sending Automated Email Reminders?
If I wanted to send periodic email reminders, would a periodic sleep interval work fine (e.g. sleep xxxxx), or would I need a task plugin like BackgroundDRB? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gm...
2007 Sep 21
0
Plugin that will expire_page across multiple servers?
...make expire_page work across multiple servers? That is, I''ve got two servers A and B behind a load balancer. If I cache a page eventually it will be cached on both servers. I''d like a way to expire that page and have it happen on both servers. Perhaps some integration with backgrounddrb that could do it. Anything like that? If not, any suggestions on an implementation? (and no, using a clustered file system isn''t an option for whatever reason first pops into your head :) -philip --~--~---------~--~----~------------~-------~--~----~ You received this message because...