I wanted to get a definitive answer as to the best way to programmatically obtain the number of licenses currently in use when we have borrowed all our licenses.
If the licenses are online, we can programmatically query them via http://IP_ADDRESS:30304/sessions/online. We just do a requests.get(url) then parse through the JSON data that's returned and it works well.
As background, the reason why we need to do this query: we have a render farm which manages V-ray licenses by resource counting, and artists will launch V-Ray jobs which consume licenses, so we need to update the farm manager with an accurate count every 10 minutes or so. This allows us to maximize the use of all our licenses.
Problem is when we borrow all our licenses (which we needed to do for performance reasons), we get back empty data from http://IP_ADDRESS:30304/sessions/online which makes sense because the licenses are now "offline". So is there an alternate URL or methodology we can user to programmatically query our license usage?. Are there any other queries we can make to the server? I tried http://IP_ADDRESS:30304/sessions/offline which doesn't work.
Thank you for any suggestions you can provide.
If the licenses are online, we can programmatically query them via http://IP_ADDRESS:30304/sessions/online. We just do a requests.get(url) then parse through the JSON data that's returned and it works well.
As background, the reason why we need to do this query: we have a render farm which manages V-ray licenses by resource counting, and artists will launch V-Ray jobs which consume licenses, so we need to update the farm manager with an accurate count every 10 minutes or so. This allows us to maximize the use of all our licenses.
Problem is when we borrow all our licenses (which we needed to do for performance reasons), we get back empty data from http://IP_ADDRESS:30304/sessions/online which makes sense because the licenses are now "offline". So is there an alternate URL or methodology we can user to programmatically query our license usage?. Are there any other queries we can make to the server? I tried http://IP_ADDRESS:30304/sessions/offline which doesn't work.
Thank you for any suggestions you can provide.