Stop tasks and show task progress (#181)

* Add job status to tasks page

* Add support for stopping task

* Show progress of some tasks
This commit is contained in:
WithoutPants
2019-11-07 15:35:04 +11:00
committed by Leopere
parent d1ea2fffa5
commit c0911f1626
13 changed files with 283 additions and 68 deletions

View File

@@ -14,7 +14,7 @@ import (
)
type singleton struct {
Status JobStatus
Status TaskStatus
Paths *paths.Paths
JSON *jsonUtils
@@ -38,7 +38,7 @@ func Initialize() *singleton {
initFlags()
initEnvs()
instance = &singleton{
Status: Idle,
Status: TaskStatus{Status: Idle, Progress: -1},
Paths: paths.NewPaths(),
JSON: &jsonUtils{},
}