> On Nov 13, 2012 9:15 AM, "Ranaldo Bowker" <[email protected]> wrote:
> >
> > Im currently having a similar problem, where I cannot remove/kill
> > processes.
> >
> > I have a lot of stale processes, when ever I try to kill (
> > RuoteKit.engine.kill_process(wfid) ), or cancel them they just remain there,
> > I've noticed as well, when viewing the processes in RuoteKit, the position
> > column is empty.
> >
> > Im using Ruote 2.2.0
> >
> > Any help would be greatly appreciated,
> >
On Tue, Nov 13, 2012 at 09:19:56AM +0100, Mario Camou wrote:
>
> I've found that, at least through the RuoteKit console, I have to kill
> processee twice to actually make them go away, after the first time the
> expressions column shows up as empty and I have to go in and kill them
> again.

Hello Ranaldo,

I don't know what your processes look like so I don't know what the cause of
for those stale processes.

Now in order to get rid of them, Ruote 2.2 hasn't got the #remove_process
method so, if Mario's suggestion doesn't work, there's more work ahead.

In your ruote initializer add the following code:

---8<---
module Ruote
  module StorageBase
    def remove_process(wfid)
      # ...
    end
  end
end
--->8---

where the body of the method is detailed at:

  
https://github.com/jmettraux/ruote/blob/b5b58906060ef2bedffb4f93f0587421a4e7b836/lib/ruote/storage/base.rb#L274-297

Then you'll have to call that method for each wfid (process instance id) for
the stale processes.

If that doesn't work, please explain how it doesn't work (remember I need
details, saying "it doesn't work" is a waste of time for both of us).

(and if that really doesn't work, we'll fallback to manual removal of all
documents composing the stale process instances)


Best regards,

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

Reply via email to