Merge "schedulerservice: implement getMaxAllowedPriority" into oc-dev