Closed casparvl closed 1 month ago
Ok, this is documented behavior:
If the resource name specified in this variable does not match a resource name in the partition configuration, it will be simply ignored.
We should be able to check current_partition.resources
for a resource named memory
and print an associated error (or maybe better: a warning) if we don't find it. Warning should say something that no resources
item with the name memory
was found in the config file and that this may result in OOM errors, and that it is highly advised to specify how memory (per node) should be requested for the given batch scheduler.
On
azure_mc
, the ESPResSo test was failing with an OOM error. I checked, and the test does call the hook that requests memory here. This then calls this hook which essentially sets:Surprisingly, that field seems to be completely ignored if the config doesn't contain a section like
I'm not sure if we can query the existence of that config item explicitly, or what the documented behavior is for requesting a resource that isn't specified. If the documented behavior is a silent pass, we should try to hard-code a check and throw an error ourselves if this resource isn't set.