ruote log_2010-06-01

2010-06-01 06:41:42 utc threetee hi kennethkalmer
2010-06-01 06:41:50 utc threetee question for you if you're around
2010-06-01 06:42:07 utc threetee daemon-kit related
2010-06-01 06:47:43 utc kennethkalmer threetee: can I catch you at the office ?
2010-06-01 06:47:43 utc kennethkalmer in around 40 minutes or so, depending on traffic
2010-06-01 06:48:11 utc jmettraux kschiess: hello
2010-06-01 06:49:10 utc threetee sure, I'll probably still be around...I'll write it here really quick in case you want to think about it on the way. I'm using DaemonKit with the ruote pre-configured daemon, and I'm wondering about the best way to define the AMQP queues to join dynamically
2010-06-01 06:49:15 utc kschiess hi jmettraux
2010-06-01 06:49:48 utc threetee I'd like to have each of my agents join a queue based on their hostname or UUID, for example
2010-06-01 07:24:01 utc kennethk_ how many coffees today ?
2010-06-01 07:25:04 utc tosch_le i'll try one for a change :-)
2010-06-01 07:26:58 utc jmettraux one for me please !
2010-06-01 07:30:09 utc kennethkalmer ACTION emits 2 coffees
2010-06-01 07:30:20 utc jmettraux ACTION receives 1
2010-06-01 07:30:28 utc tosch_le ACTION receives 1
2010-06-01 07:30:33 utc tosch_le thanks!
2010-06-01 07:30:40 utc kennethkalmer pleasure
2010-06-01 07:30:47 utc jmettraux ACTION on_coffee { drink }
2010-06-01 07:30:48 utc kennethkalmer threetee: did you want one ?
2010-06-01 07:30:52 utc kennethkalmer ahaha
2010-06-01 07:31:45 utc threetee haha
2010-06-01 07:32:08 utc threetee sure, emit one my way as well
2010-06-01 07:32:14 utc tosch_le ACTION << coffee
2010-06-01 07:32:22 utc jmettraux :)
2010-06-01 07:32:27 utc kennethkalmer ACTION emits an express coffee
2010-06-01 07:32:48 utc threetee ACTION receives an express coffee
2010-06-01 07:34:22 utc kennethkalmer m(_ _)m
2010-06-01 07:35:24 utc jmettraux wayneeseguin has a new interpretation of m(_ _)m, more like "mooning"
2010-06-01 07:35:34 utc kennethkalmer oh no
2010-06-01 07:35:46 utc kennethkalmer wayneeseguin you foul minded thing you ;)
2010-06-01 07:38:39 utc kennethkalmer so threetee, that dk question you had ?
2010-06-01 07:38:57 utc threetee sure thing
2010-06-01 07:39:39 utc threetee I'm using DaemonKit with the ruote pre-configured daemon, and I'm wondering about the best way to programmatically define the AMQP queues to join. For example, I'd like to have each of my agents join a queue that is named based on their hostname or UUID, but of course I won't know those until runtime.
2010-06-01 07:40:24 utc threetee my current method is to rewrite the config/ruote.yml file at startup, but that seems kind of kludgy to me
2010-06-01 07:40:50 utc threetee I'm basically doing this:
2010-06-01 07:41:06 utc threetee ruote_config = DaemonKit::Config.load('ruote').to_h
2010-06-01 07:41:19 utc threetee ruote_config['amqp']['queues'] = [
2010-06-01 07:41:19 utc threetee uuid,
2010-06-01 07:41:19 utc threetee fqdn
2010-06-01 07:41:20 utc threetee ]
2010-06-01 07:41:20 utc threetee File.open(File.join(DAEMON_ROOT, 'config', 'ruote.yml'), 'w') { |f| f.write ruote_config.to_yaml }
2010-06-01 07:41:21 utc threetee oops
2010-06-01 07:41:25 utc threetee sorry for the multi-line
2010-06-01 07:41:30 utc kennethkalmer np
2010-06-01 07:43:16 utc threetee so that code works, but I'm wondering if there's a more elegant way
2010-06-01 07:45:25 utc kennethkalmer I think I should extend the code so you can do something simple in your libexec file
2010-06-01 07:48:53 utc threetee okay, so I'm not overlooking anything then
2010-06-01 07:49:30 utc kennethkalmer not at all
2010-06-01 07:49:41 utc kennethkalmer I do exactly the same thing as you
2010-06-01 07:49:42 utc threetee cool
2010-06-01 07:49:52 utc kennethkalmer except my ruote.yml is handled by capistrano/chef
2010-06-01 07:50:06 utc kennethkalmer so I configure the hostname in the queues once
2010-06-01 07:50:08 utc threetee makes sense
2010-06-01 07:50:23 utc threetee I could do the same with puppet
2010-06-01 07:50:36 utc kennethkalmer but your point also makes sense, the code is a bit inflexible
2010-06-01 07:56:47 utc kennethkalmer ok threetee
2010-06-01 07:56:54 utc kennethkalmer just pushed something to github for you to test
2010-06-01 07:57:10 utc threetee cool I'll check it out
2010-06-01 07:57:24 utc kennethkalmer in your DaemonKit::RuoteParticipants.configure block
2010-06-01 07:57:38 utc kennethkalmer you can use : config.subscribe_to uuid
2010-06-01 07:57:44 utc kennethkalmer configure.subscribe_to fqdn
2010-06-01 07:58:14 utc kennethkalmer it is a step closer
2010-06-01 07:58:26 utc kennethkalmer http://bit.ly/cAs7lw
2010-06-01 07:58:49 utc kennethkalmer actually: http://github.com/kennethkalmer/daemon-kit/commit/e6b5b6c842d722a6d7a162f3104a140ad613d7ff
2010-06-01 08:00:40 utc threetee nice
2010-06-01 08:00:46 utc threetee pulling and building gem now
2010-06-01 09:03:39 utc threetee hi kennethkalmer, getting this: http://pastie.org/986962
2010-06-01 09:05:48 utc threetee looks like mq is set in the run_amqp method, but the default ruote DK template doesn't call run until after the config is done
2010-06-01 09:06:19 utc threetee so calling config.subscribe_to from within the config block currently gives the error I pastied
2010-06-01 09:07:33 utc threetee also, looks like line 84 of ruote_participants.rb should be 'def subscribe_to( q )', not 'def subscribe_to( queue )'
2010-06-01 09:13:27 utc kennethkalmer dammit, fixing it for you
2010-06-01 09:19:10 utc kennethkalmer threetee: just pushed up something else for you
2010-06-01 09:19:19 utc kennethkalmer apologies for the "patch tennis"
2010-06-01 09:19:58 utc kennethkalmer this time the runtime queues are saved in an array, and merged with the queues from the config file
2010-06-01 09:20:36 utc threetee haha
2010-06-01 09:20:41 utc threetee I think we just did the same thing
2010-06-01 09:21:26 utc threetee without looking at your commit, here's what I just put together that seems to work: http://pastie.org/986987
2010-06-01 09:21:33 utc threetee let's see how close our two versions are :)
2010-06-01 09:21:57 utc kennethkalmer wow
2010-06-01 09:22:05 utc kennethkalmer not familiar with the | operator
2010-06-01 09:22:08 utc kennethkalmer ACTION hits the docs
2010-06-01 09:22:51 utc kennethkalmer set union, offcourse... well done
2010-06-01 09:22:54 utc kennethkalmer cleaning up quickly
2010-06-01 09:24:13 utc threetee looks like we did nearly the same thing, just different variables and method names :)
2010-06-01 09:24:39 utc kennethkalmer great minds think alike
2010-06-01 09:25:01 utc threetee of course
2010-06-01 09:25:09 utc kennethkalmer and pushed, many tanks !
2010-06-01 09:25:15 utc threetee np, thank you
2010-06-01 09:26:09 utc kennethkalmer did you get the capistrano stuff working ? apologies for only replying yesterday
2010-06-01 09:29:22 utc threetee great, latest patches seem to have everything sorted for queue subscription
2010-06-01 09:29:29 utc threetee and yes, capistrano stuff is now working
2010-06-01 09:29:39 utc threetee thanks for that
2010-06-01 09:30:14 utc threetee no worries about not replying until yesterday, no harm done
2010-06-01 09:31:21 utc kennethkalmer with all of this done I think I can release 0.1.8 final
2010-06-01 09:31:27 utc threetee cool
2010-06-01 11:41:09 utc kennethkalmer tosch_le: http://github.com/cloudhead/http-console
2010-06-01 11:45:59 utc tosch_le nice one, thanks
2010-06-01 12:13:36 utc kennethkalmer pass it on to John if I miss him
2010-06-01 13:22:14 utc kennethkalmer http://github.com/cloudhead/http-console
2010-06-01 13:25:11 utc kennethkalmer jmettraux: http://github.com/cloudhead/http-console
2010-06-01 13:25:14 utc kennethkalmer there we go
2010-06-01 13:25:29 utc jmettraux kennethkalmer: ah
2010-06-01 13:25:33 utc jmettraux yes very nice
2010-06-01 13:25:42 utc jmettraux still loving curl though ;)
2010-06-01 13:25:42 utc kennethkalmer thought you'd like it
2010-06-01 13:25:49 utc kennethkalmer me too