1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-07 14:21:55 +00:00

support switch scheduler.strategy

This commit is contained in:
Newnius 2020-08-13 19:17:59 +08:00
parent 8ce969a163
commit 64bd28e83c

View File

@ -344,6 +344,7 @@ func serverAPI(w http.ResponseWriter, r *http.Request) {
break break
/* allocator.strategy */ /* allocator.strategy */
/* TODO: move jobs */
case "allocator.strategy": case "allocator.strategy":
ok = InstanceOfAllocator().updateStrategy(value) ok = InstanceOfAllocator().updateStrategy(value)
scheduler = InstanceOfConfiguration().GetScheduler() scheduler = InstanceOfConfiguration().GetScheduler()