53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import { JobProgress } from '../types/job-progress';
|
|
import { RedisJobOptions } from '../types/job-options';
|
|
import { ParentKeys } from './parent';
|
|
export interface JobJson {
|
|
id: string;
|
|
name: string;
|
|
data: string;
|
|
opts: RedisJobOptions;
|
|
progress: JobProgress;
|
|
attemptsMade: number;
|
|
attemptsStarted: number;
|
|
finishedOn?: number;
|
|
processedOn?: number;
|
|
timestamp: number;
|
|
failedReason: string;
|
|
stacktrace: string;
|
|
returnvalue: string;
|
|
parent?: ParentKeys;
|
|
parentKey?: string;
|
|
repeatJobKey?: string;
|
|
nextRepeatableJobKey?: string;
|
|
debounceId?: string;
|
|
deduplicationId?: string;
|
|
processedBy?: string;
|
|
stalledCounter: number;
|
|
}
|
|
export interface JobJsonRaw {
|
|
id: string;
|
|
name: string;
|
|
data: string;
|
|
delay: string;
|
|
opts: string;
|
|
progress: string;
|
|
attemptsMade?: string;
|
|
finishedOn?: string;
|
|
processedOn?: string;
|
|
priority: string;
|
|
timestamp: string;
|
|
failedReason: string;
|
|
stacktrace?: string;
|
|
returnvalue: string;
|
|
parentKey?: string;
|
|
parent?: string;
|
|
deid?: string;
|
|
rjk?: string;
|
|
nrjid?: string;
|
|
atm?: string;
|
|
defa?: string;
|
|
stc?: string;
|
|
ats?: string;
|
|
pb?: string;
|
|
}
|