mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-17 03:56:31 +01:00
Merge pull request #1020 from paperless-ngx/feature-frontend-task-queue
Feature: frontend task queue
This commit is contained in:
commit
1f73ca21bf
19 changed files with 722 additions and 4 deletions
32
src-ui/src/app/data/paperless-task.ts
Normal file
32
src-ui/src/app/data/paperless-task.ts
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import { ObjectWithId } from './object-with-id'
|
||||
|
||||
export enum PaperlessTaskType {
|
||||
// just file tasks, for now
|
||||
File = 'file',
|
||||
}
|
||||
|
||||
export enum PaperlessTaskStatus {
|
||||
Queued = 'queued',
|
||||
Started = 'started',
|
||||
Complete = 'complete',
|
||||
Failed = 'failed',
|
||||
Unknown = 'unknown',
|
||||
}
|
||||
|
||||
export interface PaperlessTask extends ObjectWithId {
|
||||
type: PaperlessTaskType
|
||||
|
||||
status: PaperlessTaskStatus
|
||||
|
||||
acknowledged: boolean
|
||||
|
||||
task_id: string
|
||||
|
||||
name: string
|
||||
|
||||
created: Date
|
||||
|
||||
started?: Date
|
||||
|
||||
result: string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue