Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Worker on its own process can not find participants
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jordi  
View profile  
 More options Jul 31 2012, 3:00 am
From: jordi <jcar...@mdsol.com>
Date: Tue, 31 Jul 2012 00:00:52 -0700 (PDT)
Local: Tues, Jul 31 2012 3:00 am
Subject: Re: [ruote:3709] Worker on its own process can not find participants

Thank you. I was requiring but only in the sinatra app. I have to require
also in the rakefile where I have the rack task.
Now it seems to work.
Thanks!

On Tuesday, July 31, 2012 3:46:07 PM UTC+9, coffeeaddict wrote:

> 2012/7/31 jordi <jcar...@mdsol.com>:

> > Hi,

> > I am trying to run a worker on its own process.
> > I have a sinatra app where I am doing this:
> >   RuoteKit.engine = Ruote::Engine.new(
> >       Ruote::Sequel::Storage.new(DATABASE))

> > I then register the participants and workflows in this engine.

> > On the other hand I have a Rake task like this:
> >  RuoteKit.run_worker Ruote::Sequel::Storage.new(DATABASE)

> > DATABASE is correct and the same constant (the rake file require the
> other
> > file).

> > When I run the app and in another terminal I run the rake task, I can
> start
> > a workflow and I get its id, but when I call process on this id I get
> this
> > error every time ( in status.errors message) :
> > NameError: uninitialized constant LowerCaseString

> > LowerCaseString is the name of the first participant of my workflow.

> > On the other hand, if I call engine.participant_list on the Sinatra app
> ,
> > even after this error, I get:
> > /^lower_case_string$/ ==> LowerCaseString {}
> > and all my others participants.

> > When I run the worker in the same process it seems I do not have this
> > problem.
> > Any ideas of what I am doing wrong?

> Did you require the file that supplies LowerCaseString?

> Kind regards,
> Hartog.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.