Page 1 of 1

Stop/Start Batch procs using pre and post import hooks

PostPosted: Wed Dec 05, 2018 5:02 pm
by jdbruijn
Is there anybody that used the pre/post import hook modules to stop all BatchProcs before importing a solution and restarting them after the import is completed?

I have taken a look at the UserManagerPlugin, but this only gives me the option to get a list of Batch processors, looks like this is the information from BatchProcessor tab on the Admin page.
I can get a list of Headless clients and I can stop a client for instance based on the solution name. However, I cannot find a way to restart the client after the import is done.

I have heard of using the HTTP plugin to 'manipulate' the batch processors tab on Admin page, but I was wondering if there are any other solutions out there.

Re: Stop/Start Batch procs using pre and post import hooks

PostPosted: Wed Dec 05, 2018 5:29 pm
by sean
Hi Jos

Which version of Servoy do you use ?
While there is no API strictly for batch processors, we have, since 8.2, the client manager plugin. You can list all connected clients and kill them.

We had a webinar for the 8.2 release dedicated to this plugin.

Headless clients can be (re)started from the headless client plugin. Let us know if you need more details. Good luck!

Re: Stop/Start Batch procs using pre and post import hooks

PostPosted: Thu Dec 06, 2018 12:58 am
by mboegem
sean wrote:Headless clients can be (re)started from the headless client plugin.


Restarting them via the plugin will not list them in the admin page as batch processors in a running state?
I remember trying this in past and I did not see this happen.