Before revision: We consider the dividends problem for both de Finetti's and Dual models for spectrally one-sided L\'evy processes subject to a constraint on the time of ruin .
After revision: We introduce a longevity feature to the classical optimal dividend problem by adding a constraint on the time of ruin .