[Question] Get alerted when delayed ready jobs don't start
I have some delayed jobs on BullMQ that are run on an ephemeral environment. I have some auto-scaling rules, so I can ensure I have a machine ready to process the job when the time comes. However, I've already had problems in the past where there was an issue with my build and the machine didn't start.
What is the simplest way to get alerted when delayed jobs don't start? My idea: have a Lambda function that runs every other minute and checks if there is a delayed job that's ready but hasn't been promoted, then send an alert to my Slack. What do you think? Is there an easier way to do this?
I think you are going to enter a rabbit hole trying to start workers when you detect there may be jobs in the queue. BullMQ is designed to always have at least one worker running. Nevertheless, the simplest solution if you still want to do this would be to start a worker from time to see if there are jobs to process.