I was struggling to get ResourceUnavailable to work properly. On a whim I tried the WorkLoad with a value of 0, as suggested by the docs, and I got the following:
The resource is not assigned to any task. WorkLoad constraint meaningless.
That made me realize that the contraint needed to be added after the workers was added to the tasks. After doing that, things worked as expected.
If ResourceUnavailable had the same error message that would be helpful for folks new to the library figure out what they are doing wrong.
I was struggling to get
ResourceUnavailable
to work properly. On a whim I tried theWorkLoad
with a value of 0, as suggested by the docs, and I got the following:That made me realize that the contraint needed to be added after the workers was added to the tasks. After doing that, things worked as expected.
If
ResourceUnavailable
had the same error message that would be helpful for folks new to the library figure out what they are doing wrong.