>
> Hello, 
>
> ouch, I wished you had reported the issue earlier. 
>
>
Sorry, I thought maybe I wasn't using Ruote correctly.
 

> > > What's behind the storage? (Database, version)? 
> > 
> > MongoDB 2.0.6 
>
> What Redis was it ? 
>

It's version 2.3.9. While I was waiting on you for the redis reconnect 
code, I went ahead and tested with ruote-mon. It seems to be working fine 
so far.
 

>
> > > What does your process definition look like? 
> > 
> > See http://www.hastebin.com/gosiqosoti.pl 
>
> OK, I'll reverse engineer the definition. 
>
> Do you have the output for the two expressions in that process? 
>

Not sure what you mean by output.
 

> I wish I could see one of those errors. 
>
> I wish I could see one of those stuck processes. 
>
> What stucks the process in the first place? 
> Is the stucking always happening around the same expression? 
> What do those "sometimes errors" look like (message, type, backtrace)... 
>
>
I just tried killing 7 processes on my dev machine and couldn't get the 
errors to reoccur. With ruote-mon I was getting the errors at first with 
the connection string set up as in the readme on Github. Later I switched 
to sharing the Mongoid connection to MongoDB like so:

RuoteKit.engine = Ruote::Engine.new(
  Ruote::Worker.new(
    Ruote::Mon::Storage.new(
      Mongoid.database,
      {})))

This was the only way I could get it to work in production, because our 
production db requires authentication. When I tried authenticating like so:

config = YAML.load_file(Rails.root + 'config' + 'mongoid.yml')[Rails.env]

RuoteKit.engine = Ruote::Engine.new(
  Ruote::Worker.new(
    Ruote::Mon::Storage.new(
      Mongo::Connection.new(config["host"], 
config["port"])[config["database"]].authenticate(config["username"], 
config["password"]),
      {})))


I was getting connection errors.

But today I tried killing processes again and none of them got stuck. I 
will try to reproduce the earlier errors for you when I get a chance.


-- 
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

Reply via email to