Welcome to e health forum.
In most cases of laparoscopic hernia repair (most common method) patients recover within 2-3 days after the surgery. But complete return to normal activity may be expected within 7 to 10 days.
More physical occupations, including sports, lifting heavy weights may take a little longer, commonly up to about 3 to 4 weeks.
While these are average recommendations, every case may differ slightly, and specific instructions will be given to each patient based on his or her physical needs, ability, skill, and training level. Hence you might consult with your operating surgeon who can advice you according to your needs.