diff --git a/types/bull/bull-tests.tsx b/types/bull/bull-tests.tsx index 916e8fe69a..2314b06546 100644 --- a/types/bull/bull-tests.tsx +++ b/types/bull/bull-tests.tsx @@ -31,6 +31,9 @@ videoQueue.process((job, done) => { // transcode video asynchronously and report progress job.progress(42); + // get current job progress + const progress = job.progress(); + job.log('loglog'); job.isCompleted(); job.isFailed(); @@ -60,6 +63,9 @@ audioQueue.process((job, done) => { // transcode audio asynchronously and report progress job.progress(42); + // get current job progress + const progress = job.progress(); + // call done when finished done(); diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 0bdf77bf92..eb2a5b3f08 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -170,6 +170,11 @@ declare namespace Bull { returnvalue: any; + /** + * Get progress on a job + */ + progress(): any; + /** * Report progress on a job */