The clock has finally run out for an Upper East Side judge who ridiculed a lawyer with cerebral palsy and allowed cases involving tenants without heat or hot water to drag on, sources told The Post.

The Manhattan Housing Court’s advisory council, which reviews its judges after each four-year term, recently ruled that jurist Susan Avery should get the boot — as it catalogued years of complaints against her, sources said.

Avery’s chief-judge boss is now set to follow through on the recommendation by the end of the year, sources said.

“Considering the complaints against her, it’s about time for her to leave the bench,” said Alan Flacks, a longtime local resident pushing for judicial reform.

Avery, 52, of East 84th Street, landed her $175,000-a-year job in 2012 thanks to a political appointment by then-Chief Judge Gail Prudenti.

But she started demonstrating poor judgment almost immediately from the bench, according to the 14-member Advisory Council for the Housing Part of the Civil Court of New York City.

In 2013, Avery reprimanded a lawyer with cerebral palsy for his sloppy handwriting, the panel said in its four-page finding, which called the judge “unfeeling.’’ The incident resulted in a letter of caution being placed in Avery’s file, according to a court source.

The council — comprised of representatives from both the real-estate industry and tenants’ organizations appointed by the mayor and governor — also criticized Avery for “excessive multi-week adjournments” for cases involving lack of heat and hot water, said the letter, a copy of which was read to The Post.

The advisory council said in its decision last month that the New York Law School grad showed a general “lack of concern” for the litigants before her.

The council added it was “disturbed further” by conflicts of interests involving the Housing Court judge’s family real-estate holdings.

A court source said Avery failed to disclose that a law firm administering a family trust also regularly represents landlords in cases before the judge.

Meanwhile, the jurist garnered a “not approved” rating by the city Bar Association — twice.

Voters also refused to back her two bids to move up to civil court.

In the summer of 2016, a judge who was running against Avery for a civil-court position lodged a complaint over her campaign tactics.

Justice Sabrina Kraus, who was appointed to the bench in 2005, accused Avery’s boyfriend of making derogatory comments about her Iranian heritage on Facebook.

Avery failed to disavow the remarks, showing ethnic bias, the advisory panel added.

Kraus beat Avery to win the seat.

Avery ran for civil court again this year but lost in the September primary.

Avery did not respond to multiple requests for comment. The former chief judge who appointed her, Prudenti, said she had no memory of choosing her.