The coming of the Messiah will not occur until the measure is full, as it is said, ‘In its time I will hasten it’ (Isaiah 60:22). The school of Eliyahu interpreted this to mean: In its appointed time if they are not worthy; but hastened if they are righteous.

-Pesikta de-Rav Kahana 5:9