Ensure the same pid is not queued twice in the parallel compiler