Add min and max to scheduler api