ruote log_2010-05-18

2010-05-18 05:48:36 utc irfn Hi all
2010-05-18 05:48:51 utc jmettraux Hi irfn !
2010-05-18 05:49:09 utc irfn hi jmettraux
2010-05-18 05:50:08 utc irfn I had a question about remote multiple Workers
2010-05-18 05:50:35 utc irfn i am trying out redis support
2010-05-18 05:54:49 utc irfn got dc'ed
2010-05-18 05:54:59 utc jmettraux welcome back
2010-05-18 05:55:12 utc jmettraux you were at "I'm trying out redis support"
2010-05-18 05:55:46 utc irfn :D
2010-05-18 05:55:51 utc irfn yeah
2010-05-18 05:57:44 utc irfn so i am adding a script/rake task etc to start up a worker pointing to a redis instance
2010-05-18 05:58:03 utc irfn now invoking this script multiple times gives me multiple workers
2010-05-18 05:58:34 utc irfn and my Application has an engine without a running worker
2010-05-18 05:59:03 utc irfn and i am launching workflows via that instance of the worker
2010-05-18 05:59:08 utc irfn sorry
2010-05-18 05:59:11 utc irfn i mean engine
2010-05-18 05:59:14 utc jmettraux via that engine
2010-05-18 05:59:15 utc jmettraux ;)
2010-05-18 05:59:32 utc irfn so does this sound like a correct usage
2010-05-18 05:59:39 utc jmettraux it is
2010-05-18 05:59:47 utc jmettraux (I guess block participants don't work)
2010-05-18 05:59:49 utc irfn ok
2010-05-18 06:00:02 utc irfn oh
2010-05-18 06:00:41 utc irfn i dont understand y u say that
2010-05-18 06:00:55 utc jmettraux sorry, I was trying to anticipate your question
2010-05-18 06:01:03 utc jmettraux so, does it work well ?
2010-05-18 06:01:52 utc irfn so the workers are not picking up the "workflow"
2010-05-18 06:02:13 utc jmettraux what are the symptoms ?
2010-05-18 06:02:21 utc irfn the Application launches them but no workers are processing this
2010-05-18 06:02:34 utc irfn i can see that all workers and engine is connected to redis instance
2010-05-18 06:02:40 utc jmettraux does a message get placed in redis ?
2010-05-18 06:02:58 utc jmettraux there should at least be a redis "launch" message
2010-05-18 06:03:05 utc irfn no
2010-05-18 06:03:13 utc irfn i dont see anything going to redis
2010-05-18 06:03:17 utc irfn except connected
2010-05-18 06:03:31 utc jmettraux may I see the code you use to connect the engine and the code to launch ?
2010-05-18 06:04:04 utc irfn its exactly same as mentioned in http://github.com/jmettraux/ruote-redis
2010-05-18 06:04:41 utc irfn for engine i use Ruote::Engine.new(RuoteStorage.current, run = false))
2010-05-18 06:04:58 utc jmettraux sorry, what is RuoteStorage.current ?
2010-05-18 06:05:08 utc irfn oh sorry
2010-05-18 06:05:10 utc irfn that is Ruote::Redis::RedisStorage.new(::Redis.new(:db => 14), {})
2010-05-18 06:05:48 utc irfn and for worker Ruote::Worker.new(RuoteStorage.current).run
2010-05-18 06:06:14 utc irfn i have tested my workflows via hashstorage and filesystem storage
2010-05-18 06:06:18 utc jmettraux question : are your workers and the engine in the same Ruby runtime ?
2010-05-18 06:06:18 utc irfn and they work fine
2010-05-18 06:06:27 utc irfn no
2010-05-18 06:06:30 utc jmettraux ok
2010-05-18 06:06:42 utc irfn i have created a script
2010-05-18 06:06:53 utc irfn which loads same env and runs just the worker
2010-05-18 06:07:56 utc irfn any "setting"
2010-05-18 06:08:16 utc irfn like engine.configure('remote_definition_allowed', true)
2010-05-18 06:08:24 utc irfn i tried this but doesnt help
2010-05-18 06:08:40 utc jmettraux indeed, it's not related at all with your issue
2010-05-18 06:08:57 utc jmettraux let me try on my side
2010-05-18 06:09:13 utc irfn question:
2010-05-18 06:09:47 utc irfn should the participants/workflows be registered in each ruby runtime
2010-05-18 06:10:02 utc jmettraux workflows can't be registered
2010-05-18 06:10:05 utc jmettraux participants yes
2010-05-18 06:10:24 utc jmettraux they have to be registered in each runtime
2010-05-18 06:10:46 utc irfn ok
2010-05-18 06:13:15 utc jmettraux ACTION testing...
2010-05-18 06:14:50 utc jmettraux I'm using thread_safe => true with Redis
2010-05-18 06:15:20 utc irfn can you post a redis example plz
2010-05-18 06:16:10 utc jmettraux http://gist.github.com/404701
2010-05-18 06:16:26 utc jmettraux you are doing ::Redis.new(:db => 14)
2010-05-18 06:16:42 utc jmettraux while I'm doing ::Redis.new(:db => 14, :thread_safe => true)
2010-05-18 06:17:01 utc jmettraux it works for me
2010-05-18 06:17:15 utc jmettraux the launch message gets placed in Redis
2010-05-18 06:30:12 utc hansen_ hello John
2010-05-18 06:30:27 utc jmettraux hansen_: hello !
2010-05-18 06:31:45 utc hansen_ I want to know how to lunch process definitions by json style.
2010-05-18 06:31:49 utc hansen_ thank you
2010-05-18 06:32:30 utc jmettraux hansen_: engine.launch([ 'participant', { 'ref' => 'hansen' }, [] ])
2010-05-18 06:33:05 utc hansen_ so simple!
2010-05-18 07:07:32 utc hansen_ hello john
2010-05-18 07:08:10 utc jmettraux hello
2010-05-18 07:08:37 utc hansen_ why can't use engine.launch([ 'participant', { 'ref' : 'hansen' }, [] ]) ? but Json style use : instead of =>
2010-05-18 07:09:06 utc jmettraux because { "a": "b" } isn't valid Ruby code
2010-05-18 07:09:14 utc jmettraux { "a" => "b" } is valid Ruby code
2010-05-18 07:09:35 utc jmettraux you can do engine.launch("[ 'participant', { 'ref' : 'hansen' }, [] ]")
2010-05-18 07:09:59 utc jmettraux or engine.launch(Rufus::Json.decode("[ 'participant', { 'ref' : 'hansen' }, [] ]"))
2010-05-18 07:10:48 utc hansen_ OK! thank you now I have put process instence ,participant,workitems,fields into database
2010-05-18 07:11:52 utc jmettraux you're welcome
2010-05-18 07:12:00 utc hansen_ i think there something wrong in http://ruote.rubyforge.org/definitions.html
2010-05-18 07:12:15 utc hansen_ raw [JSON] process definitions
2010-05-18 07:12:38 utc hansen_ [ 'process-definition', { 'name': 'my_def' }, [ should be [ 'define', { 'name': 'my_def' }, [
2010-05-18 07:12:45 utc jmettraux it's not wrong
2010-05-18 07:13:03 utc jmettraux the explanation is too "quick"
2010-05-18 07:14:21 utc jmettraux OK, I will make the explanation more detailed
2010-05-18 07:14:26 utc jmettraux thanks for reporting
2010-05-18 07:15:07 utc hansen_ OK, not at all, thank you
2010-05-18 07:31:54 utc jmettraux hansen_: I have updated it a bit : http://ruote.rubyforge.org/definitions.html
2010-05-18 08:41:17 utc jmettraux irfn: which version of redis-rb are you using ?
2010-05-18 08:54:27 utc jmettraux ruote-redis, as of now, works with the 1.0.2 "redis" gem
2010-05-18 08:55:24 utc jmettraux I'm going to upgrade to 2.0.0 now
2010-05-18 08:55:42 utc jmettraux they are very different gems
2010-05-18 08:57:03 utc irfn hey sorry jmettraux
2010-05-18 08:57:06 utc irfn i was away
2010-05-18 08:57:13 utc jmettraux no worries
2010-05-18 08:57:16 utc irfn i am using the trunk
2010-05-18 08:57:25 utc irfn ill switch tag
2010-05-18 08:57:35 utc irfn thanks for info
2010-05-18 08:57:50 utc jmettraux I am surprised you didn't see any error message
2010-05-18 08:58:06 utc jmettraux I have just tried redis-rb 2.0 and it exploded at my head
2010-05-18 08:58:15 utc irfn :D
2010-05-18 09:01:06 utc irfn ah
2010-05-18 09:01:10 utc irfn finally worked
2010-05-18 09:01:26 utc jmettraux were you seeing error message previously ?
2010-05-18 09:01:27 utc irfn weird i wasnt getting any error messages for the incorrect version
2010-05-18 09:01:56 utc irfn you said that you got the error immediately
2010-05-18 09:02:06 utc jmettraux indeed
2010-05-18 09:02:15 utc irfn ill investigate
2010-05-18 09:02:37 utc irfn but im happy that my workflows get triggered on remote workers
2010-05-18 09:03:21 utc irfn many thanks.
2010-05-18 09:03:33 utc jmettraux you're welcome
2010-05-18 09:03:36 utc irfn i generally try the trunk versions first
2010-05-18 09:03:51 utc jmettraux I'm moving to redis-rb 2.0 right now
2010-05-18 09:04:03 utc irfn kool
2010-05-18 09:18:11 utc jmettraux OK, ruote-redis works with redis-rb 1.0.2 and 2.0
2010-05-18 09:18:35 utc jmettraux http://github.com/jmettraux/ruote-redis/commit/6e2c5b4d1f21dff122d680f7a533a6c75e8bb244
2010-05-18 12:34:19 utc anb_ Yello
2010-05-18 12:34:29 utc jmettraux Blue
2010-05-18 12:34:39 utc anb_ How are you John ?
2010-05-18 12:35:36 utc jmettraux hello, doing fine, how about you ?
2010-05-18 12:35:48 utc anb_ good, thanks
2010-05-18 12:48:11 utc jmettraux busy ?
2010-05-18 13:03:28 utc anb_ was
2010-05-18 13:03:33 utc anb_ you ?
2010-05-18 13:03:44 utc anb_ do you recommend ruby 1.9 for ruote ?
2010-05-18 13:04:02 utc jmettraux I recommend ruby 1.9 for everything ruby ;)
2010-05-18 13:04:09 utc anb_ all right :)
2010-05-18 13:04:31 utc anb_ fighting with rubygems at the moment
2010-05-18 13:04:50 utc anb_ i'm still learning :)
2010-05-18 13:05:16 utc jmettraux good too : http://gembundler.com/
2010-05-18 13:05:29 utc jmettraux but at first try to "dominate" rubygems
2010-05-18 13:05:45 utc anb_ bundler is an extra layer for rubygems ?
2010-05-18 13:05:59 utc jmettraux well
2010-05-18 13:06:10 utc jmettraux it leverages them
2010-05-18 13:06:12 utc jmettraux or git repos
2010-05-18 13:06:36 utc jmettraux just for 1 application
2010-05-18 13:06:56 utc anb_ ok
2010-05-18 13:07:01 utc anb_ ruote-kit seems to be using it
2010-05-18 13:18:09 utc kennethkalmer hey guys
2010-05-18 13:18:14 utc jmettraux hello
2010-05-18 13:18:31 utc kennethkalmer bundler makes things simpler, but can be a huge pita while they progress with it
2010-05-18 13:18:58 utc kennethkalmer i've always been a fan of the vendor-everything approach, bundler makes it easier
2010-05-18 13:19:56 utc kennethkalmer otherwise, you guys doing well ?
2010-05-18 13:20:40 utc jmettraux wasting my time explaining to Pat on the mailing list that ruote is a hammer and not a screwdriver
2010-05-18 13:21:13 utc kennethkalmer no way
2010-05-18 13:21:42 utc jmettraux don't worry, he will complain for a few days then come back in two years
2010-05-18 13:31:44 utc anb_ hello kennethkalmer
2010-05-18 13:31:59 utc kennethkalmer hey anb_