- protected checkNextWorkerNodeReadiness (): void {
- if (!this.isWorkerNodeReady(this.nextWorkerNodeKey as number)) {
+ protected checkNextWorkerNodeKey (): void {
+ if (
+ this.nextWorkerNodeKey != null &&
+ (this.nextWorkerNodeKey < 0 ||
+ !this.isWorkerNodeReady(this.nextWorkerNodeKey))
+ ) {