MIDDLETOWN — A 17-vote spread in Tuesday’s Democratic primary election between two council candidates running on competing slates has triggered a recount of all votes for that office in Middletown.

A recanvass, as it’s officially known, will be held Friday starting at 9 a.m. at City Hall. It was prompted because the vote totals of Democratic Town Committee-endorsed candidate Bobbye Knoll Peterson (1,681) and For All Middletown Common Councilman Gerry Daley (1,664) were separated by fewer than 20.

There will be 12 council seats up for grabs on Election Day. In Middletown, the charter requires at least four be from the minority party. Currently, the council comprises eight Democrats and four Republicans.

The recanvass is mandatory if there is less than half a percent of total votes or less than a 20-vote difference between candidates running in the primary, according to state statute.

“That’s why we say ‘every vote counts,’” Democratic Registrar of Voters Lisa Santangelo said.

Democratic Town Committee Chairman Robert Blanchard said he is looking forward to his party’s candidates maintaining their positions.

Ranking of vote getters

DTC-endorsed Common Councilman Eugene Nocera (2,292)

DTC-endorsed Jeanette White (2,069)

DTC-endorsed former councilman Vinnie Loffredo (2,051)

DTC-endorsed Common Councilman Grady Faulkner (1,913)

DTC-endorsed Darnell Ford (1,871)

DTC-endorsed Ed McKeon (1,833)

For All Middletown candidate Meghan Carta (1,695)

Peterson (1,681)

Daley (1,664)

DTC-endorsed Anthony Mangiafico (1,661)

For All Middletown candidate Linda Pagano (1,553)

For All Middletown candidate Robert P. Santangelo (1,553)

For All Middletown candidate Sonia Santavenere (1,457)

For All Middletown candidate W. Vance Cotton Sr. (1,440)

For All Middletown candidate Concettina Mejias (1,325)

For All Middletown candidate Stephen DiCarlo (1,318)

The winners will go up against the Republican slate of Matt Scarrozzo, Tony Gennaro, Linda Salafia, Mike Marino, Ed Ford Jr., Phil Pessina, Jon Pulino and Hope Kasper on Election Day. Common Council Minority Leader Sebastian N. Giuliano is at the top of that ticket.

“It’s encouraging to see a strong turnout of Democrats in Middletown in Tuesday’s election. Many times in Connecticut, and occasionally Middletown, the results are sometimes close,” he said.

Once Santangelo was notified by the secretary of the state’s office of the recount, she and her staff scrambled to secure space, equipment and tabulators to hold the recanvass.

After they learned, at 4 p.m., that all the council votes were being re-examined, personnel began notifying all 16 candidates — no easy task, she admitted. That work, she expects, will continue into the night.

“If you’re going to contest the results of two candidates, because it’s within a certain margin, then, essentially, you’re contesting all the candidates vying for that office,” Santangelo said.

Candidates may waive the right to a recanvass triggered by a close or tie vote, but not a discrepancy, according to the secretary of the state. A recanvass must be open to the public and convene no later than five business days after the applicable primary or election.

Of the city’s 12,431 active Democrats, 4,089 turned out at the polls on primary day. Registrar’s office workers will be feeding all ballots through two tabulators at City Hall Friday.

“It’ll take as long as it takes,” Santangelo said.

Voter turnout in Middletown (32.9 percent) was more robust than statewide figures, which show 27.1 percent, according to the secretary of the the state’s office.

The recount will begin Friday at 9 a.m. at City Hall Council Chambers, 245 deKoven Drive.