On Tue, Apr 20, 2010 at 10:51 PM, John Mettraux <[email protected]> wrote:
>
> Another alternative that we discussed : placing all the retry logic inside of 
> the participant and hide it from the 'business process'. Still worth a try. 
> Maybe I could provide you with a way for the local participant to re_apply 
> itself after a while :
>
> ---8<---
>  class OlegParticipant
>
>    include Ruote::LocalParticipant
>
>    def consume (workitem)
>      # ...
>      if something_went_wrong
>        re_apply(workitem, :in => '3m')
>      else
>        reply_to_engine(workitem)
>      end
>    end
>
>    def cancel (flavour)
>      # have to unschedule the queued re_applies if any...
>    end
>  end
> --->8---
>
> Let me think about it...

Phase 1 is in :

  
http://github.com/jmettraux/ruote/commit/91fac72da25af53cb6fbf6d0d9b77300681f413a

I will enable re_apply(workitem, :in => 'x') and re_apply(workitem,
:at => 'y') tomorrow.

Please let me know what you think.


Best regards,

-- 
John Mettraux   -   http://jmettraux.wordpress.com

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