Skip to content

Commit

Permalink
feat(job): store progress with the whole job data
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarthon committed Dec 10, 2020
1 parent 8248bc1 commit 3074850
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Job extends Emitter {
data = JSON.parse(data);
const job = new Job(queue, jobId, data.data, data.options);
job.status = data.status;
job.progress = data.progress;
return job;
}

Expand All @@ -44,6 +45,7 @@ class Job extends Emitter {
data: this.data,
options: this.options,
status: this.status,
progress: this.progress,
});
}

Expand Down

0 comments on commit 3074850

Please sign in to comment.