Electron now launches a series of benchmarks and then shuts down when everything has been sucessfully scheduled
This commit is contained in:
parent
6de14f2e23
commit
6e2a627038
3 changed files with 32 additions and 26 deletions
12
task.go
12
task.go
|
@ -7,12 +7,12 @@ import (
|
|||
)
|
||||
|
||||
type Task struct {
|
||||
CPU float64 `json: "cpu"`
|
||||
RAM float64 `json: "ram"`
|
||||
Watts float64 `json: "watts"`
|
||||
Image string `json: "image"`
|
||||
CMD string `json: "cmd"`
|
||||
Instances int `default 1, json: "inst"`
|
||||
CPU float64 `json:"cpu"`
|
||||
RAM float64 `json:"ram"`
|
||||
Watts float64 `json:"watts"`
|
||||
Image string `json:"image"`
|
||||
CMD string `json:"cmd"`
|
||||
Instances *int `json:"inst"`
|
||||
}
|
||||
|
||||
func TasksFromJSON(uri string) ([]Task, error) {
|
||||
|
|
Reference in a new issue