job.model.ts 503 B

1234567891011121314151617181920212223
  1. export type JobState = 'active' | 'completed' | 'failed' | 'waiting' | 'delayed'
  2. export type JobType = 'activitypub-http-unicast' |
  3. 'activitypub-http-broadcast' |
  4. 'activitypub-http-fetcher' |
  5. 'activitypub-follow' |
  6. 'video-file-import' |
  7. 'video-transcoding' |
  8. 'email' |
  9. 'video-import' |
  10. 'videos-views' |
  11. 'activitypub-refresher'
  12. export interface Job {
  13. id: number
  14. state: JobState
  15. type: JobType
  16. data: any,
  17. error: any,
  18. createdAt: Date
  19. finishedOn: Date
  20. processedOn: Date
  21. }