[bull] Add additional job properties

including: queue, name, and stracktrace

Rationale: it is useful to know which queue (and named processor) this Job was in.
This commit is contained in:
Daniel Hritzkiv 2019-01-16 16:05:38 -05:00 committed by GitHub
parent 77eb217d93
commit 33d0fe9dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
types/bull/index.d.ts vendored
View File

@ -128,6 +128,25 @@ declare namespace Bull {
* When this job was completed (unix milliseconds)
*/
finishedOn?: number;
/**
* Which queue this job was part of
*/
queue: Queue<T>;
timestamp: number;
/**
* The named processor name
*/
name: string;
/**
* The stacktrace for any errors
*/
stacktrace: string[];
returnvalue: any;
/**
* Report progress on a job