Fighting in the trenches during World War I continued for so long as neither side was able to get a foothold to victory.
Essentially, each side was so dug in and the war was so brutal and evenly matched that no side was able to win and the slaughter had to continue.