1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-06-06 05:51:54 +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
/* allocator.strategy */
/* TODO: move jobs */
case "allocator.strategy":
ok = InstanceOfAllocator().updateStrategy(value)
scheduler = InstanceOfConfiguration().GetScheduler()