Search code examples
ruby-on-railsresquesidekiq

Converting a Resque queue to SideKiq


I am trying to convert a Resque queue to Sidekiq. I've completed the entire setup for Sidekiq, and now am ready to add all my resque jobs to sidekiq ones.

My question is: Can I simply rename all the resque keys in redis to the corresponding sidekiq keys?

For instance, if I have a queue named "twitter", the redis key for resque is "resque:queue:twitter", but the key in sidekiq would be "queue:twitter". Could I simply rename "resque:queue:twitter" to "queue:twitter" ?


Solution

  • Ok Finally Got it

    There are few global command that I missed and rename is perhaps one of them.

    Where you can rename the keys If you want

    do something like this

    redis.rename "resque:queue:twitter","queue:twitter" 
    

    And see if it work

    Cheers

    Thanks for the question It just brushed up by redis knowledge