RubyOnRails - ActionCableClient Error ignoring messages processed after the...
RubyOnRails APIs are using ActionCable to connect to the socket for live tracking.There are two iOS apps Driver and Customer. Drivers are broadcasting their locations and customers are...
View ArticleRedis with anycable causes error "Subscribe error: Application error: ERR max...
I'm trying to implement a feature where a user will know if someone is online after they log in. I'm using Anycable for the WebSocket. When the user visits the website, WebSocket will add the user id...
View ArticleUsing Redis on Gitlab CI for a Rails project
I am trying to set up Gitlab CI for my Rails project and for this I need Redis. I have added redis to the config file but I am getting an errorRedis::CannotConnectError: Error connecting to Redis on...
View ArticleProgrammatically get the number of jobs in a Resque queue
I am interested in setting up a monitoring service that will page me whenever there are too many jobs in the Resque queue (I have about 6 queues, I'll have different numbers for each queue). I also...
View ArticleDelete Processes from sidekiq/redis
i have searched everywhere online but have been unable to work out how to delete a worker or process from sidekiq/redis. I see there is a 'cleanup' function (Sidekiq::ProcessSet.cleanup) which should...
View ArticleSetting up Rails to use multple Redis instances
We have set up multple Redis instances in Herkou to handle different caches and queues, how do you set up Rails to use different instances?
View ArticleWork with two separate redis instances with sidekiq?
Good afternoon,I have two separate, but related apps. They should both have their own background queues (read: separate Sidekiq & Redis processes). However, I'd like to occasionally be able to push...
View ArticleNot working a background job with using Resque on Heroku
I have my rails application that has a job (using Active Job). I use resque and resque-scheduler gems for queuing backend.I want to connect my rails application to a redis-to-go server with Resque on...
View ArticleSidekiq perform_async is not firing
I'm creating Elasticsearch callbacks using Sidekiq. I started Redis and Sidekiq, and created an object in rails console but it seems like perform_sync is not firing. If I add require...
View ArticleWhat's the Ruby RSpec best practice for dealing with background jobs and am I...
I'm not sure if I have a bug somewhere, or am just not using good practice. Suppose I have either of the following:class ThingMailer < ApplicationMailer def notify_of_thing mail(subject: 'Thing has...
View ArticleRedis tries to connect to localhost on Heroku instead of REDIS_URL
I have a Rails app which uses Redis for background jobs. On Heroku I use the Heroku Redis add-on. When I deploy to Heroku, it gives me this error:Redis::CannotConnectError: Error connecting to Redis on...
View ArticleSidekiq Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) on...
I'm trying to run sidekiq worker with Rails. When I try to docker-compose up worker I get the following error:worker_1 | Error connecting to Redis on 127.0.0.1:6379 (Errno::ECONNREFUSED) worker_1 |...
View ArticleCan a second rails application re-use an already purchased Redis instance
Can a second rails application re-use an already purchased Redis instance?In other words, is the Redis data namespaced by application name or some thing.(somewhat related to Get Two Rails apps to share...
View ArticleHow frequently does sidekiq calls redis for Jobs and how does it do it? Does...
Sidekiq's current docs say that sidekiq uses redis for fetching Jobs using FIFO algorithm but it does not have information (or I could not find it) about how frequent is sidekiq fetching that data from...
View ArticleHow Redis manage the unused cache keys?
My questions is very simpleAssuming I'm not specifying expires_in key for my generated cache keyLet's says i generate a cache key for posts with key "posts/#{maximum_record_updated at}" with no...
View Article"You are connecting to Redis v3.2.9, Sidekiq requires Redis v4.0.0 or greater?"
I recently updated Sidekiq in my Gemfile:gem 'sidekiq', '~> 6.0', '>= 6.0.4' gem 'redis', '~> 4.1', '>= 4.1.3'But ever since updating, I get this error when running sidekiq in Terminal: You...
View ArticleHow, or best way to run while loop to avoid API limitations
I am using an API request and this API has a limit of 2 calls a second and 250 records per request. That's the gist.I have created this background job that also has the option of a second background...
View ArticleRedis Server Failure when server starts
When I start redis on OSX, it exits because it says it can't handle RDB format version 7. Here's the output:Server started, Redis version 3.0.7 Can't handle RDB format version 7 Fatal error loading the...
View ArticleWhy does Resque show "0 out of 0 Workers Working" while a worker is running?...
I'm trying to test out my Ruby on Rails app. I have redis running, I have a rails server setup and I started a Resque worker in the terminal via the command rake resque:work QUEUE=*, which responds...
View ArticleHow to fetch redis data connected in multiple rails version application?
I am using redis cache to fetch data in my rails applications. In simple words I can say that I have two application first is based on rails 4 and second is on rails 6. I have to use cache data in both...
View Article