I'm building a site that requires the queue to be worked between 8am-8pm only as we do not want communications sent during any other time.
My initial thoughts are to run a cron at 8am to start horizon and one at 8pm to terminate it. And in order to properly track updates to the job files I am thinking of adding some logic to the deploy script that will EITHER always terminate horizon and only restart it if between the specified hours OR only terminate and restart horizon if the horizon process is found to be running.
Is this a good approach / is there a better way of achieving this? Thanks.