How to secure that queue processing for page_hit and email_hit is working


I run a self hosted mautic, I use rabbitmq to handle buffer page_hits and email_hits.

In order to process in the backgroud there is a console command mautic:queue:process. Since this command stays running in the backgroud, how can we make sure that it is restarted in case of failure ?