> On Monday, March 18, 2013 10:56:31 PM UTC+1, John Mettraux wrote:
> >
> > On Mon, Mar 18, 2013 at 02:46:16PM -0700, Ludovic wrote:
> > >
> > > Is anyone has a feedback to share about using Ruote with Sidekiq?
> > > I'm naively trying to "bundle exec sidekiq -r ruote.rb" with a ruote.rb
> > > containing the following lines:
> >
> > What is this "bundle exec sidkiq -r whatever.rb" supposed to achieve? I
> > can't
> > find it mentioned in the documentation of Sidekiq (didn't search too long
> > though).
> >
> > From ten thousands of kilometers away, it seems like you're trying to tell
> > Sidekiq to run ruote... Wouldn't it be the other way around? Ruote should
> > hand work via some participant to Sidekiq (and there should be a way for
> > Sidekiq jobs to communicate back to ruote, ruote-amqp would be a good
> > model
> > to follow then).
>
On Tue, Mar 19, 2013 at 09:32:18AM -0700, Ludovic wrote:
>
> Indeed, I wanted to "protect" ruote behind a queuing system (Sidekiq or
> Ruote) since the few tests (in terms of charge) let me think that ruote
> were not designed to handle 20 processes/seconds. What do you guys usually
> do?
Hello Ludovic,
your try "sidekiq -r ruote.rb" makes no sense at all.
Ruote was not designed to handle 20 ruote process instances / seconds, it was
designed to handle all the ruote process instances as quickly as possible
without loss.
Running ruote inside of Sidekiq makes no sense. I understand that throwing
things at walls yields interesting results, but then looking at the mess and
invoking "it was not designed to handle 20 processes/seconds" deepens the
nonsense.
> {"fei":{"engine_id":"engine","wfid":"20130319-1535-keguteya-dejujuha",
> "subid":"e92c906320eeaa2e14da2191531fdba9","expid":"0_0_0"},"at":"2013-03-19
> 15:35:16.406278 UTC","class":"RuntimeError","message":"#<RuntimeError:
> eventmachine not initialized: evma_connect_to_server>","trace":"
The event machine loop is not on.
See
https://github.com/kennethkalmer/ruote-amqp/blob/master/examples/kindjal.rb
(line 16)
for an example of setting up an EM loop for a small script.
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.