+ if (
+ workerNodeKey == null &&
+ this.choiceRetriesCount < (this.opts.choiceRetries as number)
+ ) {
+ this.choiceRetriesCount++
+ return this.execute()
+ } else if (workerNodeKey == null) {
+ throw new Error(
+ `Worker node key chosen is null or undefined after ${this.choiceRetriesCount} retries`
+ )