## Enhancement Use a separate loop for cleaning up is better. Otherwise, if there are no new add index jobs running, temp-dir cannot be cleaned up.