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