During the Battle of Stalingrad, were the factories there still producing war materiel for the soldiers fighting there?

I always heard this rumor that the big factory complexes (especially the tractor factory) inside Stalingrad still produced tanks and other vehicles during the battle for the city itself. Obviously they wouldn’t keep making weapons after the Wehrmacht captured it, but when did the factories actually shut down?