Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Browsing all 873 articles
Browse latest View live
↧

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 Article


Flaky 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 Article


Sidekiq/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 Article

ERR 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 Article

Sidekiq, 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 Article


Sidekiq 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 Article

Image may be NSFW.
Clik here to view.

Maily 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 Article

How 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 Article


Can 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 Article


Sidekiq 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 Article

Can 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 Article

How 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 Article

What'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 Article


Encrypt 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 Article

Image may be NSFW.
Clik here to view.

Rails 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 Article


not 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 Article

Am 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 Article


ROR 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 Article

Ruby 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 Article

RubyOnRails - 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
Browsing all 873 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>