I have several processes that are currently running as rake tasks. Can I somehow use Sidekiq to execute a process in a continuous loop? Is it best practice with Sidekiq?
These processes, although they now run in the background in a continuous cycle in their respective rake tasks, occasionally fail. Then I need to restart the rake task.
I am trying several options using the SO community. One of them is to figure out how to control rake tasks using monit . But this means that each process should have its own environment, adding to the server load. Since I work in a virtualized environment, I want to eliminate this whenever possible.
Another option is to simply use the Sidekiq parameter that I already have. Now I use Sidekiq to process background images, but it is always just one-time. Is there a way that I can have a continuous process in Sidekiq? And also receive notifications about failures and restart processes automatically?
source share