It reminds me about a story by Philip K. Dick - Autofab. It's a story about postapocaliptic world with automated factories that do not stop to work after the work causing trouble for people. People decide to make the factories fight with each other. Let's just say it doesn't end in a good way.