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:
parent
52435e467a
commit
419b520ca4
22 changed files with 539 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue