On Fri, Jun 21, 2013 at 03:48:00PM -0700, emc_lab wrote: > > (...) > > There is a ruote.rake of above which is automatically saved into lib/tasks. > Since there is NO worker instantiated in rails initialization and we know > ruote engine needs at least one worker running at any time: > > 1. when and how (by Rake::Task['ruote'].invoke in rails app?) in rails app, > ruote.rake should be called to instantiate a worker?
Hello, you start start the Rails app and some ruote workers together. The Rails app is not responsible for starting/stopping the ruote workers. > Or worker only needs to be instantiated once for the rails app. > (For worker within a ruote engine, worker is created in rails initializers > along with ruote engine). Sorry, this sentence in brackets is confusing. > 2. Does rails app need to kill the worker after the required data > processing is done? Or just leave it running for next request. Remember that if you have no ruote worker running, your workflows will not run. Maybe this can help you: https://github.com/ddollar/foreman > 3. In which situation does rails app need more than one worker instance? Please re-read the thread: https://groups.google.com/forum/#!topic/openwferu-users/Tmd29hzSijc If you are Santa-Claus (sorry I don't know what culture you're from, Santa-Claus isn't in my culture either, but lots of people know him/it) and have to produce 1000 toys, will it be faster if you do it alone or if you hire 10 elves to help? Now will you assign 1 or 2 elves per 3D printer? Producing a toy roughly involves spending 50% of the time on the drawing board and 50% of the time operating the 3D printer. If two elves could alternate operating one 3D printer, that might be optimal. In a GNU/Linux console, run "top" or "htop" and watch the elves. Best regards, -- John Mettraux - http://lambda.io/jmettraux -- -- you received this message because you are subscribed to the "ruote users" group. to post : send email to [email protected] to unsubscribe : send email to [email protected] more options : http://groups.google.com/group/openwferu-users?hl=en --- You received this message because you are subscribed to the Google Groups "ruote" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
