RESUMEN
The main objective of this paper is to propose a novel SEIR stochastic epidemic model. A distinguishing feature of this new model is that it allows us to consider a setup under general latency and infectious period distributions. To some extent, queuing systems with infinitely many servers and a Markov chain with time-varying transition rate comprise the very technical underpinning of the paper. Although more general, the Markov chain is as tractable as previous models for exponentially distributed latency and infection periods. It is also significantly more straightforward and tractable than semi-Markov models with a similar level of generality. Based on stochastic stability, we derive a sufficient condition for a shrinking epidemic regarding the queuing system's occupation rate that drives the dynamics. Relying on this condition, we propose a class of ad-hoc stabilising mitigation strategies that seek to keep a balanced occupation rate after a prescribed mitigation-free period. We validate the approach in the light of the COVID-19 epidemic in England and in the state of Amazonas, Brazil, and assess the effect of different stabilising strategies in the latter setting. Results suggest that the proposed approach can curb the epidemic with various occupation rate levels if the mitigation is timely.