JobEvent
The JobEvent interface represents an event in the lifecycle of a job, such as when it is added, processed, completed, failed, cancelled, or retried.
Fields
id: number — Unique event ID.jobId: number — The job this event is associated with.eventType: JobEventType — The type of event (see below).createdAt: Date — When the event was created.metadata: any — Additional metadata for the event.
JobEventType
JobEventType is an enum of possible job event types:
type JobEventType =
| 'added'
| 'processing'
| 'completed'
| 'failed'
| 'cancelled'
| 'retried';