Pipelining commands on a Redis instance is deprecated and will be removed in Redis 5.0.0

Viewed 2354

I am using redis version 6.0 and gem 'sidekiq', '>= 6.4.1' gem 'sidekiq-cron', '~> 1.2' for job scheduling in rails. I am using corn job to process email daily. [pipeline commands on a redis is deprecated. My ruby version is 2.7, rails version is 6.1 and using ubuntu 20.07.

2 Answers

The issue was fixed by the Sidekiq team in their latest version v6.4.1 . If still there are warnings then it is due to the sidekiq-cron gem. It has been discussed and and fixed in a forked branch here - ondrejbartas/sidekiq-cron#310 (comment) We would need to do the following while adding sidekiq cron in the gemfile:

"sidekiq-cron", git: "https://github.com/citusdata/sidekiq-cron", branch: "hotfix/pipelining_depreciation"

This worked for me. Hope it would help you.

I was still getting this error after updating sidekiq to v6.4.1. The error seemed to be coming from a dependent gem of resque, redis-namespace. So I updated the resque gem and that fixed the issue for me.

Related