mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
77eb217d93
commit
33d0fe9dfd
19
types/bull/index.d.ts
vendored
19
types/bull/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user