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

@@ -16,4 +16,16 @@ query MetadataGenerate($input: GenerateMetadataInput!) {
query MetadataClean {
metadataClean
}
query JobStatus {
jobStatus {
progress
status
message
}
}
query StopJob {
stopJob
}

View File

@@ -1,5 +1,9 @@
subscription MetadataUpdate {
metadataUpdate
metadataUpdate {
progress
status
message
}
}
subscription LoggingSubscribe {

View File

@@ -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!]!
}

View File

@@ -7,4 +7,10 @@ input GenerateMetadataInput {
input ScanMetadataInput {
nameFromMetadata: Boolean!
}
type MetadataUpdateStatus {
progress: Float!
status: String!
message: String!
}