Reque a task from a license error

When renderman fails because there aren’t enough licenses, it prints:
R50005 {ERROR} License error - feature: PhotoRealistic-RenderMan

To the log. In plugin, is there a way to have that automatically set the task back to pending? We run really close to the max number of lics and it’d be great if this particular error could get reque’d overnight instead of being marked as fail.

Thanks!

Are you using the limits option for your licenses?

Limits are used to manage access to shared resources among multiple jobs. For instance, in a render farm, there may be more render nodes than available floating licenses for a specific application or plugin. This can cause license errors when licenses are exhausted, leading to wasted render time and reduced productivity. License Limits can help by restricting access to these floating licenses, ensuring efficient resource usage.

https://docs.thinkboxsoftware.com/products/deadline/10.1/1_User%20Manual/manual/limits.html

Yes, but unfortunately the number of licenses will vary during the day as the pool of licenses is shared with the desktops. So, if there is heavy usage on the desktops, we could dip below the limit set for the farm and start getting license errors.

You will typically encounter the opposite issue. The simplest way to resolve this is to set a conservative number and adjust it after hours. Another approach is to write a Python script that checks for available licenses at the start of the render. If a license is free, the script proceeds; if not, it pauses for a set period, then checks again, repeating this process until a license becomes available.

Thanks! Yeah, I was thinking about that too, but would that block the worker from picking up other jobs while it waits for a license?