On Tue, Aug 07, 2012 at 02:41:55PM -0700, laurent wrote:
>
> Because I'm new with ruote, I crash the engine : I run a lot of process
> with error, and now, I was unable to kill these process one by one, with
> the process id.
Hello Laurent,
lots of process in errors != engine crashed. The engine is crashed if it
cannot perform anything anymore.
> So, is it a way to "reset" the engine (like a "reboot" in a operating
> system).
> If not, how I clean the storage ? (like rake db:drop)
in my test #teardown I usually have
---8<---
RuoteKit.engine.shutdown
RuoteKit.engine.storage.purge!
--->8---
The first line will make the worker stop, while the second one will remove
anything from the storage.
Ruote-kit is using a Ruote::FsStorage by default. Another way of purging the
storage is to remove the ruote_work_#{RAILS_ENV} directory.
> In the rails console :
>
> RuoteKit.engine.process_wfids
> => ["20120807-2004-didureza-gapozuba", "20120807-2031-gosugehi-jeshigebu",
> "20120807-2031-jezojomi-dapuhaju", "20120807-2036-kepozaso-kopojipo",
> "20120807-2037-bihewane-nonejoya", "20120807-2037-podijuze-jahorapi",
> "20120807-2038-piyamere-popidabe", "20120807-2039-depijika-donuyajo"]
> 1.9.3p194 :010 >
>
> RuoteKit.engine.kill RuoteKit.engine.process_wfids.first
> => nil
>
> RuoteKit.engine.process_wfids
> => ["20120807-2004-didureza-gapozuba", "20120807-2031-gosugehi-jeshigebu",
> "20120807-2031-jezojomi-dapuhaju", "20120807-2036-kepozaso-kopojipo",
> "20120807-2037-bihewane-nonejoya", "20120807-2037-podijuze-jahorapi",
> "20120807-2038-piyamere-popidabe", "20120807-2039-depijika-donuyajo"]
>
> The first process is still here !
#kill and #cancel are not "instantaneous", they happen by sending cancel
messages from the root of the process to the leaves. You have to give it some
time.
Note, sometimes #kill/#cancel may fail. In that case a helpful issue report
is much appreciated (well for any issue, a helpul report is much
appreciated).
Meilleures salutations,
--
John Mettraux - http://lambda.io/jmettraux
--
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