On 27.01.2016, at 18:38, Mark deVilliers <markdevilli...@gmail.com> wrote:

> What is the best way to detect in a job is in progress from the actual slave?
> 
> Our use case is to write a script that will delete a slave after a period of 
> inactivity. We want the deletion to happen whether the slave is still 
> registered to the master or not.

Not sure what you're asking for, but maybe accessing the slave activity via 
Jenkins remote API will work?

For example, this URL will tell you how busy the executors of the 'cabbage' 
slave on ci.j.o are:

https://ci.jenkins-ci.org/computer/cabbage/api/xml?tree=executors[idle]

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/A56BE03D-B0DD-4D2D-B6F0-7088CBD9B7CB%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Reply via email to