And if you need every half a minute to run, you will sleep insert?
And if the problem lasts longer than a minute?
Apparently, you are the instrument chosen. You may need to do in any event, not to check the database. Think about the queues.
Put event to the queue handler queue it processed without delay.