this.choiceRetriesCount++
return this.execute()
} else if (workerNodeKey == null) {
- throw new TypeError('Worker node key chosen is null or undefined')
+ throw new TypeError(
+ `Worker node key chosen is null or undefined after ${this.choiceRetriesCount} retries`
+ )
}
+ this.choiceRetriesCount = 0
return workerNodeKey
}