+ const isKillBehaviorOptionHard =
+ message.kill === killBehaviorTypes.HARD
+ if (isKillBehaviorOptionHard || tasksInProgress === 0) {
+ // Kill received from the worker, means that no new tasks are submitted to that worker for a while ( > maxInactiveTime)