“Waitress,” the long-running Broadway show about a despondent waitress in a small-town diner who finds solace in making pies, will close on Jan. 5, 2020, producers announced on Tuesday.

The final curtain will come down after 1,544 performances and 33 previews at the Brooks Atkinson Theater in New York, making it that theater’s longest-running musical.

The production’s box-office earnings were also significant: After opening on Broadway in 2016, “Waitress” earned its $12 million investment back in less than 10 months. It was one of only three new musicals from that Broadway season to go into the black — the others being “School of Rock” and “Hamilton.”

Adapted from a 2007 film by Adrienne Shelly and with a book by Jessie Nelson, the show focuses on Jenna, a waitress mired in an unhappy marriage and who sees the prize money from a local baking contest as a potential means to escape her circumstances.