SAN FRANCISCO – Giants manager Bruce Bochy was said to be resting comfortably after undergoing an ablation in San Diego to treat an atrial fibrillation – his second heart procedure this year and his third in the past three seasons.

“The procedure went extremely well and I’m feeling better,” said Bochy, in a statement that the Giants relayed to reporters Friday. “I’m grateful for the doctors and want to thank everyone who has reached out with well wishes.”

Bochy had his initial ablation, or burning of heart tissue, in April to treat an atrial flutter. He knew at the time that the second ablation needed to be scheduled, and considered having the procedure over the All-Star break in July. But he opted to put it off until after the season.

Bochy is expected to rest for a week but said he would be back in San Francisco for organizational meetings on Oct. 23. He also still plans to travel to the Dominican Republic to visit the Giants’ academy there and to Costa Rica for a fishing trip in the coming weeks.

Bochy said the procedure is routine and he still has every intention to fulfill the final two years of his contract.

“I don’t want anyone to think this has an effect on my work, or ability to work,” Bochy said after the season ended. “This is something that is not uncommon.”

Bochy pointed out that former 49ers coach Jim Harbaugh and Indians manager Terry Francona had similar procedures.

“I’ve talked to people who say, `You’ll see a world of difference,’” Bochy said.

Atrial fibrillation often results in a racing heartbeat and the condition can be regulated through medication, or in some cases, with crash paddles to reset the heart’s electric rhythm.

The 62-year-old manager also had an unscheduled procedure in February, 2015, to insert two stents after a pair of 90 percent blockages were discovered during his routine physical at the start of spring training.

The Giants certainly didn’t make it easy on a manager with a heart condition. Their 64-98 record matched the Detroit Tigers for the worst in the major leagues.