One possible solution is to use the Prerequisite Plug-in for slaves . This allows you to add prerequisites in terms of a script:
Define a script to run on the node slave before the task runs on them. If the return status is not 0, the node will be vetoed on the execution task, and any other node will be selected, or the task will return to the queue to create a queue waiting for an available node to match its premises.
with the following script window packages:
python.exe -c "import psutil; assert len(psutil.get_users())==0"
you will need to get psutil , but you can create something with a clean windows shell. The most obvious drawback is that we go through many systems, instead of just using those that are marked as available.
source share