Noah preached the same message for nearly 120 years. Was his ministry a failure?

Moses had to keep preaching the same message to a king that God had already judged. Was Moses wasting his time?