How to remove sidekiq specific redis cache via capistrano prior to a restart -
On rail code deployment, the Sidekick has started again and we want to remove the sidekick specific redis cache from its earlier example Starts again
This is what we want to achieve 1. Sidekick: Stop 2. Connect to Remote Radis, which is indicated by the side 3. Select the database (select 1). 3. Remove the cache (say flush)
How do I automate it through a catalytic?
You can flush the sidekick queue in your step # 3 by calling them directly, or in your own rack task Can
Sidekiq :: ScheduledSet.new.clear # Clear the scheduled queue .. Sidekiq:: RetrySet.new.clear #Remove any occasional stir < / Pre>
Comments
Post a Comment