Skip to content

Commit

Permalink
fix(core): Correctly defer incomplete jobs on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 30, 2021
1 parent e9b18fe commit d3fa83a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/job-queue/polling-job-queue-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class ActiveQueue<Data extends JobData<Data> = {}> {
},
)
.finally(() => {
if (!this.running) {
if (!this.running && nextJob.state !== JobState.PENDING) {
return;
}
nextJob.off('progress', onProgress);
Expand Down

0 comments on commit d3fa83a

Please sign in to comment.