fix(bull): add options to job (#35139)

* fix: add options to job

* fix: add test

* fix: lint

* fix: trigger build
This commit is contained in:
Julian Hundeloh
2019-05-02 19:53:49 -07:00
committed by Wesley Wigham
parent 70298f269c
commit bea05e8d52
2 changed files with 8 additions and 0 deletions
+3
View File
@@ -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);
+5
View File
@@ -128,6 +128,11 @@ declare namespace Bull {
*/
data: T;
/**
* Options of the job
*/
opts: JobOptions;
/**
* How many attempts where made to run this job
*/