> Octopus lifespan is limited by reproduction: males can live for only a few months after mating, and females die shortly after their eggs hatch. ... Octopus reproductive organs mature due to the hormonal influence of the optic gland but result in the inactivation of their digestive glands, typically causing the octopus to die from starvation. Experimental removal of both optic glands after spawning was found to result in the cessation of broodiness, the resumption of feeding, increased growth, and greatly extended lifespans.
TIL
What I gather is that the optic gland controls all hormone secretion, and although they were able to prevent the digestive system from being blocked by removing it, the same gland likely is necessary in other areas.