1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Add ability to cancel & delete video imports

This commit is contained in:
Chocobozzz 2022-01-19 14:23:00 +01:00
parent 52435e467a
commit 419b520ca4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
22 changed files with 539 additions and 44 deletions

View file

@ -14,6 +14,30 @@ export class JobsCommand extends AbstractCommand {
return data[0]
}
pauseJobQueue (options: OverrideCommandOptions = {}) {
const path = '/api/v1/jobs/pause'
return this.postBodyRequest({
...options,
path,
implicitToken: true,
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
})
}
resumeJobQueue (options: OverrideCommandOptions = {}) {
const path = '/api/v1/jobs/resume'
return this.postBodyRequest({
...options,
path,
implicitToken: true,
defaultExpectedStatus: HttpStatusCode.NO_CONTENT_204
})
}
list (options: OverrideCommandOptions & {
state?: JobState
jobType?: JobType