prevent duplicate run of generate book prc for socket.io app