I'd like to be able to have a callback if a sidekiq job has not completed
in 10 seconds (probably send an SMS or somethign via Twilio). When a sidekiq job is not running, it is critical for my business - I honestly like to see and track every change through the different statuses of a job and log it. Say for example, any job is taking over 20 seconds, then I should be alerted.
I'd like this logic to be part of my Worker perform
method as I don't want to manage in my Rails conttroller.
I've seen sidekiq-status https://github.com/utgarda/sidekiq-status from this SO question Best way to monitor for completion of a Sidekiq job?. But it's not clear to me how this should be working. Should I be polling for the status? Or is there a better way to handle this?