If the congregational prayer is about to begin while one is eating
One should not leave the food, but should finish eating properly and completely, and only then go to the prayer.
As narrated from Ibn Umar (may Allah be pleased with them both) that the Prophet ﷺ said:
إذا كان أحدكم على الطعام فلا يعجل حتى يقضى حاجته منه وإن أقيمت الصلاة
“When any of you is at his meal, let him not hurry until he has satisfied his need from it, even if the iqamah for the prayer has been called.”
Reference: Bukhari (mu’allaq): 674, Kitab al-Adhan: Bab idha hadara al-ta’am wa uqimat al-salah