Cleaning force exiting a render
Posted: Mon Oct 29, 2018 7:59 pm
Hi,
I've pushed out CGRU to around 100-150 workstations with Blender, Houdini, Maya and Nuke - first of all can I just say thanks for such great software, we're having great fun making the most of our hardware with it.
I have configured a startup scheduled task to launch render.cmd (and therefor afrender) on boot up so it runs in the background, and have a script that kills the afrender process in the event of a user logging on to the workstations. Then when they log off, it starts back up again. All hosts are Windows 10.
It all works well, but I'm wondering if there's a cleaner way to stop the render? Killing the process and letting the zombie timeout mark the host offline does work, but it means the it becomes an error host for that job.
Can this be achieved with afcmd? or another way? I'm thinking that setting the host NIMBY and then ejecting all jobs would do the trick (and then setting as free again when the user logs off) would do it, but I'm not sure how to achieve this.
thanks in advance.
I've pushed out CGRU to around 100-150 workstations with Blender, Houdini, Maya and Nuke - first of all can I just say thanks for such great software, we're having great fun making the most of our hardware with it.
I have configured a startup scheduled task to launch render.cmd (and therefor afrender) on boot up so it runs in the background, and have a script that kills the afrender process in the event of a user logging on to the workstations. Then when they log off, it starts back up again. All hosts are Windows 10.
It all works well, but I'm wondering if there's a cleaner way to stop the render? Killing the process and letting the zombie timeout mark the host offline does work, but it means the it becomes an error host for that job.
Can this be achieved with afcmd? or another way? I'm thinking that setting the host NIMBY and then ejecting all jobs would do the trick (and then setting as free again when the user logs off) would do it, but I'm not sure how to achieve this.
thanks in advance.