From 0ba2959eabbf74ceeb78422494ffe23d624f8835 Mon Sep 17 00:00:00 2001 From: 7bit <662932+sevenbitbyte@users.noreply.github.com> Date: Wed, 7 Feb 2024 18:43:06 -0800 Subject: [PATCH] Update runner.js --- src/runner.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/runner.js b/src/runner.js index 2f9586b..6722399 100644 --- a/src/runner.js +++ b/src/runner.js @@ -201,6 +201,7 @@ class Runner extends EventEmitter { if(this._noWorkCount >= 2){ clearTimeout(this._runWatchdog) this.runningCount = undefined + this._runWatchdog = undefined /** * Idle event. @@ -359,6 +360,8 @@ class Runner extends EventEmitter { debug('restarting task - ', taskName, 'in', timeout||this._restartDelay, 'ms') setTimeout(async ()=>{ let task = this.getTask(taskName) + + debug('restarting', task) if(!task){return} await task.reset() @@ -576,4 +579,4 @@ class Runner extends EventEmitter { } -module.exports = Runner \ No newline at end of file +module.exports = Runner