In Rails, is there a way to "short-circuit" out of a rescue_from?
I am trying to make a nice user-friendly failsafe recovery for Redis in Rails. I'm using the built in redis_cache_store and have reconnect_attempts set, but I would like to send the user to a custom...
View ArticleFlaky tests with redis
I have a unit test for caching an API key in redis (in a rails app). redis is set to a global variable ($redis) with the connection_pool gem. So I do $redis.with do |redis| to actually get the redis...
View ArticleSidekiq/Redis queuing a job that doesn't exist
I built a simple test job for Sidekiq and added it to my schedule.yml file for Sidekiq Cron. Here's my test job: module Slack class TestJob < ApplicationJob queue_as :default def perform(*args)...
View ArticleERR Client sent AUTH, but no password is set error even if I set a password
I want to open sidekiq(bundle exec sidekiq) on my localhost, however I am getting ERR Client sent AUTH, but no password is set error even if I set a password on my redis.conf file. I already set a...
View ArticleSidekiq, Puma and Redis config
I'm running a Rails 5.1 application on google AppEngine. Below is my config Procfile worker: bundle exec sidekiq -C config/sidekiq.yaml pubsub: bundle exec rake run_analytics_queue_processor...
View ArticleSidekiq kills in between without any reason server RAM is approx 8GB
I am working on the Ruby on rails application, my workers are running on the sidekiq-6.0.1. generally I'm using this to send the push notifications on android and ios devices etc. I'm running sidekiq...
View ArticleMaily Herald: NoMethodError in MailyHerald::Webui::Dashboard#index
I want to use the Maily Herald as an Advanced email processing solution for Ruby on Rails applications. I have cloned the a copy of the application and have setup up. The issue though with the...
View ArticleHow to run sidekiq in background - what is the best approch with rails app...
I'm using Sidekiq 6.0.1. I'm trying to run in the background, here is the command I'm using: bundle exec sidekiq -d -L log/sidekiq.log -C config/sidekiq.yml -e development This is showing ERROR:...
View ArticleCan I use my existing Redis for a custom rails cache?
The documentation for the ActiveSupport::Cache::RedisCacheStore states: Take care to use a dedicated Redis cache rather than pointing this at your existing Redis server. It won't cope well with mixed...
View ArticleSidekiq crashes every few hours in docker
I am facing an issue in which sidekiq crashes every few hours in docker. Investigating the logs reveals a "TimeoutError" when sidekiq tries to connect to redis and restarting the containers does not...
View ArticleCan Rspec wait for an answer from a ApplicationJob?
I'm learning about RSpec, and I'm calling a method inside a model, from spec file, but the method have a background job, my questions are; How can I set spec to waiting for a response from the...
View ArticleHow to connect to a clustered Azure Redis cache in redis-rb?
I am attempting to use the Ruby Redis client redis-rb to connect to an Azure Redis Cache configured for clustering. What I've tried:I have used this related question to successfully connect to a...
View ArticleWhat's the most efficient way to serve averages out of a large data set?...
I inherited a codebase that tracks prices for about 20 million products. There's an average of 5 data points per item, per day. Logfiles are ingested nightly and the values dumped into Redis, where...
View ArticleEncrypt Sidekiq's connection to Redis
We currently have Sidekiq setup with Azure Redis Cache and would like to encrypt the connection between them. After a little googling I came across a recently merged pull request that adds native...
View ArticleRails Sidekiq on Heroku
I can see the heroku log Enqueued ContactJob (Job ID: 51992323-a2fe-425f-aec7-1f960eaf9e7d) to Sidekiq(default) with arguments: #<GlobalID:0x000055c765545178 @uri=...Here is my Procfileweb: bundle...
View Articlenot able to host machine's redis to docker rails app
I'm trying to connect my rails app which is in the docker container and trying to connect that to host machine's Redis server which is running on port 6379. I'm getting dockefile EXPOSE 3000 EXPOSE...
View ArticleAm I using connection pool correctly?
I have a rails ActiveRecord Model which is stored in MongoDB. Upon create/update/delete I have to update Redis data based on the model data. It's not a cache data we need it to be present.Current code...
View ArticleROR Backend - Android App Error ActionCableException:...
RubyOnRails APIs are using ActionCable to connect to the socket for live tracking.There are two Android apps Driver and Customer. Drivers are broadcasting their locations and customers are...
View ArticleRuby on Rails - Action Cable Client is Connected first time then always start...
ActionCable is connected the first time for the client but after couple of seconds, this starts to disconnect.ActionCable APIs are implemented in RubyOnRailsWhen trying to subscribe channel, the client...
View ArticleRubyOnRails - ActionCableClient -TransmitError.notConnected For iOS Swift
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 Article