mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +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:
@@ -16,4 +16,16 @@ query MetadataGenerate($input: GenerateMetadataInput!) {
|
||||
|
||||
query MetadataClean {
|
||||
metadataClean
|
||||
}
|
||||
|
||||
query JobStatus {
|
||||
jobStatus {
|
||||
progress
|
||||
status
|
||||
message
|
||||
}
|
||||
}
|
||||
|
||||
query StopJob {
|
||||
stopJob
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
subscription MetadataUpdate {
|
||||
metadataUpdate
|
||||
metadataUpdate {
|
||||
progress
|
||||
status
|
||||
message
|
||||
}
|
||||
}
|
||||
|
||||
subscription LoggingSubscribe {
|
||||
|
||||
@@ -67,6 +67,9 @@ type Query {
|
||||
"""Clean metadata. Returns the job ID"""
|
||||
metadataClean: String!
|
||||
|
||||
jobStatus: MetadataUpdateStatus!
|
||||
stopJob: Boolean!
|
||||
|
||||
# Get everything
|
||||
|
||||
allPerformers: [Performer!]!
|
||||
@@ -106,7 +109,7 @@ type Mutation {
|
||||
|
||||
type Subscription {
|
||||
"""Update from the metadata manager"""
|
||||
metadataUpdate: String!
|
||||
metadataUpdate: MetadataUpdateStatus!
|
||||
|
||||
loggingSubscribe: [LogEntry!]!
|
||||
}
|
||||
|
||||
@@ -7,4 +7,10 @@ input GenerateMetadataInput {
|
||||
|
||||
input ScanMetadataInput {
|
||||
nameFromMetadata: Boolean!
|
||||
}
|
||||
|
||||
type MetadataUpdateStatus {
|
||||
progress: Float!
|
||||
status: String!
|
||||
message: String!
|
||||
}
|
||||
Reference in New Issue
Block a user