Hello Matt,
you're right, since the participant :tagging is instantiated at registration time, it's only known by the ruby process where the registration happened.
To have a participant which is known to all workers :
---8<---
@engine.register_participant(
:tagging,
RuoteAMQP::Participant,
'default_queue => 'remote_participant_queue')
--->8---
> -----------------------------------------------------------------------------
> Can I just do this?
> -----------------------------------------------------------------------------
>
> @worker = Ruote::Worker.new(Ruote::FsStorage.new('/ruote_work'))
> @engine = Ruote::Engine.new(@worker, false)
>
> #
> # Omit the listener setup
> #
>
> # Register participants
> @engine.register_participant(:tagging,
> RuoteAMQP::Participant.new( :default_queue =>
> 'remote_participant_queue' ))
>
> # Run
> @worker.run
It could work as well, but the "stateless" registration described above is the recommended way.
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
You should note that there seems to be a bug in ruote-amqp which makes
using that approach impossible: The RuoteAMQP::Participant just forgets
the configuration hash.
More info:
http://groups.google.com/group/openwferu-users/browse_thread/thread/b629605d62ce192c
(and of course in the follow-ups).
Hopefully, there will be a fix soon.
Yours,
Torsten
Hello,
here is a "fixed" version (specs in the green) :
http://github.com/jmettraux/ruote-amqp
I will request a pull from Kenneth.
Feel free to build a gem from this version or to point your Gemfile to it.