RAILS SIDEKIQ SCHEDULER
I would like to launch the worker after an action and this worker must be launch automatically after every 5 seconds to check a status and when the status is checked, it must be stops. How can I do that? Thanks for your help
I would suggest creating a worker that checks the status, and if the status is not completed, it schedules a copy of itself to run
5.seconds.from_now. That way it can continuously keep checking and spawning new workers as needed until it's complete, or you've hit a timeout length or something.