A jet engine stays on wing until it meets a pre-designed overhaul time limit or sustains damage beyond pre set tolerance. Most modern get engines do not surge and when they do it is reason for removal, most non fadec engines can stay on wing after a surge. It is common to hear old straight pipe engines stall, often in reverse thrust.