code: public synchronized void addNodesToWorkerList(List<Integer> nodeIds) {
          // Bookkeeping for nodes that will be involved in the next task
          nodeIdsWithWork.addAll(nodeIds);
          logger.info("Node IDs with work: " + nodeIdsWithWork + " Newly added nodes " + nodeIds);
      }
docs: Add nodes to the workers list
  
  @param nodeIds list of node ids.