NodeLevelQueuesScheduler hand cases where no_threads is smaller or not a multiple of number_of_queues
SharedScheduler sets max task size also for DynamicTaskBasicQueue