Skip to content

Commit

Permalink
worker node running status should change to pause when job done
Browse files Browse the repository at this point in the history
	 - only the worker clientState need to be pause
  • Loading branch information
gitlabbin committed Nov 28, 2018
1 parent 681dc17 commit 45b6e74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/eb/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ module.exports = function () {
type: job.type
}, resolve);
}).then(() => {
// when job done, reset the worker clientState to pause
clientState = 'pause';
return run();
});
},
Expand Down

0 comments on commit 45b6e74

Please sign in to comment.