From bea05e8d52d648e86bbcdd1026808ee13359af16 Mon Sep 17 00:00:00 2001 From: Julian Hundeloh Date: Fri, 3 May 2019 04:53:49 +0200 Subject: [PATCH] fix(bull): add options to job (#35139) * fix: add options to job * fix: add test * fix: lint * fix: trigger build --- types/bull/bull-tests.tsx | 3 +++ types/bull/index.d.ts | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/types/bull/bull-tests.tsx b/types/bull/bull-tests.tsx index 47effb3176..ce3146f49b 100644 --- a/types/bull/bull-tests.tsx +++ b/types/bull/bull-tests.tsx @@ -16,6 +16,9 @@ videoQueue.process((job, done) => { // job.data contains the custom data passed when the job was created // job.jobId contains id of this job. + // job.opts contains the options that were passed to the job + job.opts; + // transcode video asynchronously and report progress job.progress(42); diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 269fcecfc2..c1a0a797f0 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -128,6 +128,11 @@ declare namespace Bull { */ data: T; + /** + * Options of the job + */ + opts: JobOptions; + /** * How many attempts where made to run this job */