Bottles are produced for Sriracha Hot Chili Sauce at the Huy Fong Foods plant on May 14 in Irwindale, Calif. / David McNew, Getty Images

by Jolie Lee, USA TODAY Network

by Jolie Lee, USA TODAY Network

Hot sauce lovers rejoice! The Sriracha factory in Irwindale, Calif., is no longer considered a public nuisance and can stay open.

For months, Huy Fong Foods, maker of the iconic chili sauce, has battled the city of Irwindale to keep its factory running over complaints the fumes from the plants were making residents sick.

City officials on Wednesday dismissed a lawsuit it filed against Huy Fong Foods over the fumes and dropped its declaration of the factory as a public nuisance, reports The San Gabriel Valley Tribune.

Huy Fong CEO David Tran said he has modified a ventilation system at the factory and gave written assurances to the city that the company was addressing residents' odor complaints, the Tribune reports.

The battle between Huy Fong and the city prompted offers for the company to move operations outside of California. Earlier this month, a delegation of legislators from Texas met with Tran in an effort to woo the company to open an operation in their state. Tran has said that he wanted to remain in Irwindale but was open to expanding to other locations.