Developed an epigastric hernia. Meeting with a general surgeon in about a week. Is there any hope of fixing this workout surgery?

If surgery is the only option, how's long am I looking at not working out?