added timeout handling during cache rebuild task