Hello Claudio,
excellent! I will dig into this issue report. Thanks a lot!
> However, my current problem is with the errors that such situation
> raised.
> From my business point of view, I resolved with restarting a new
> process for any process in error state.
> Therefore the processes in error state had to be removed from the
> engine.
>
> I tried to kill those processes with
> @engine.kill_process(error.wfid)
> but that seems to have no effect.
>
> Am i making any mistake?
No you're doing it right. There is probably something going bad during
the kill operations.
> Can someone suggest me a way to remove definitely the processes?
You could remove all the expressions, schedules and trackers from the storage,
that would effectively vaporize the process instance.
I guess you're using ruote-couch. It would mean removing all the documents
that have a "wfid" => your_wfid or a "fei" => { "wfid" => your_wfid } at
their top level (proceed with caution).
Tell me if you need help with that.
I can probably write a "vaporize" method that works with any storage, tell me
if you're interested. I should write it anyway, it seems a very necessary
tool.
Cheers,
John
Hello,
I think I fixed the issue yesterday while working on different symptoms:
https://github.com/jmettraux/ruote/commit/14e8a835a4ae39b9897641662bb2d1b701c6efad
I updated your gist and it seems to confirm it:
https://gist.github.com/e229de6db40823053797
Please tell me if it's not fixed.
Thanks a ton!
John
Ruote alone itself is not stable, your team is also supporting it ;-)
I pushed Ruote::Dashboard#remove_process(wfid):
https://github.com/jmettraux/ruote/commit/9be845973d9525256397e439c7f967c7800d42ce
https://github.com/jmettraux/ruote/commit/c8dfd3627fbaa69232fd21ed86a6f58d64e9b6de
https://github.com/jmettraux/ruote-couch/commit/c2d1192599d3eebc5205388337ee2e0d7c3688ee
Make sure to remove the design document in the "schedules" database of
your couch system before calling this remove_process, else the
schedules registered for your processes won't get removed.
Please tell me if it doesn't work. Thanks and best regards,
John