mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
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:
@@ -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{},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user