We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cdbf25 commit 39950f3Copy full SHA for 39950f3
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "@hokify/agenda",
3
- "version": "4.0.19",
+ "version": "4.0.20",
4
"description": "Light weight job scheduler for Node.js",
5
"main": "dist/index.js",
6
"types": "dist/index.d.ts",
src/JobProcessor.ts
@@ -451,6 +451,11 @@ export class JobProcessor {
451
);
452
return;
453
}
454
+ // when job is not running anymore, just finish
455
+ if (!job.isRunning()) {
456
+ resolve();
457
+ return;
458
+ }
459
resolve(checkIfJobIsDead());
460
}, this.processEvery)
461
0 commit comments