From 33d0fe9dfd550eaffda91c5510459e4a5dd5b4de Mon Sep 17 00:00:00 2001 From: Daniel Hritzkiv Date: Wed, 16 Jan 2019 16:05:38 -0500 Subject: [PATCH] [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. --- types/bull/index.d.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 2419afee8f..aa1ae89273 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -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; + + timestamp: number; + + /** + * The named processor name + */ + name: string; + + /** + * The stacktrace for any errors + */ + stacktrace: string[]; + + returnvalue: any; /** * Report progress on a job