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

How to restart Resque workers automatically when Redis server restarts

I have a Rails application that runs jobs on the background using the Resque adapter. I have noticed that once a couple of days my workers disappear (just stop), my jobs get stuck in the queue, and I...

View Article


Using Redis to track worker progress

Using Rails 6. I have a long time Sidekiq worker, that can take up to 4-6 hours depending on the load it is given. But if the process stops due to an error or daily restarts, I end up loosing the...

View Article


Which Redis commands does Sidekiq use?

So, I renamed several dangerous Redis commands in redis.conf, after that Sidekiq WEB UI stopped showing any statistics yet Sidekiq is functioning fine. My question is which Redis commands does Sidekiq...

View Article

Rails redis-server throws maxmemory error. Redis::CommandError (OOM command...

I'm still getting the following error message Redis::CommandError (OOM command not allowed when used memory > 'maxmemory'.): Even after setting maxmemory to 80gb inside my redis.conf file. When I...

View Article

Action Cable only sending welcome and ping message to client

I am able to get my Action Cable working and the subscription to work without any dramas... For now, I have a simple HTML page with some JS on it to connect and log the WebSocket messages. This is the...

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...

View Article

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

Using 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 error Redis::CannotConnectError: Error connecting to Redis on...

View Article


Image may be NSFW.
Clik here to view.

Cannot retrieve active ActionCable channels

I am building a notification relay into our Rails app and having difficulty returning the active channels. I have read other questions that state using Redis.new.pubsub("channels", "action_cable/*")...

View Article


Save metadata to jobs on Sidekiq

Is it possible to save metadata to jobs when using Sidekiq? For example, I want to execute a validation as a background job so that when it finishes, any errors encountered would be saved as metadata...

View Article

Passenger forking with Nginx, action cable & redis

I have some problems on my real time notifier with Passenger (v6.0.0) and Action_cable on my staging server : when i do some action linked to action_cable, some new passenger process appear...

View Article

Can one rails application connect to multiple resque?

I using single rails application and I like to connect multiple resque to publish a message to multiple resque queues I am using resque gem but I not see any way to configure multiple resque can...

View Article

docker-compose can't find gemfile in bundle

I have been trying to get this app working for a while. It doesn't give me any errors to build it and it works on when my teammates follow the same steps. But, when I run docker-compose run app bundle...

View Article


Image may be NSFW.
Clik here to view.

Heroku + Sidekiq + Redis + Puma configuration issue

I have an application in Heroku that is running with sidekiq + Redis + puma. Heroku configurations: Redis Total plan Connection limit: 200 (using Heroku Redis) puma.rb threads_count =...

View Article

Sidekiq jobs stuck in enqueue

Sidekiq has been working in development mode just perfectly. Now that I am trying to use it in production, all the jobs are just sitting in enqueue and aren't ever being run. Could anyone point me in...

View Article


Using sidekiq/redistogo with heroku?

I followed the sideqik gem tutorial docs and heroku Redistogo addon docs initializers/sidekiq.rb: Sidekiq.configure_server do |config| config.redis = { url:...

View Article

Using Resque-Scheduler with Docker-Compose - Error connecting to Redis on...

I'm trying to run my rails app, resque and redis. Using foreman etc my setup works fine but when I try to run it in Docker using docker-compose I get: app_1 | 21:03:13 resque.1 |...

View Article


I have just deployed the discourse application and getting error during...

I deployed discourse applicattion in rails on heroku. deployed succesfully Getting error when i do heroku run rake db:migrate db:seed_fu alse getting an other error on heroku run rake db:create...

View Article

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

Redis pool shared between Sidekiq and Rails application

Currently I use this configuration: # concurrency = 25 $redis = ConnectionPool.new(size: 30) { Redis.new(url: ENV['REDIS_URL']) } Sidekiq.configure_server do |config| config.redis = $redis end...

View Article
Browsing all 873 articles
Browse latest View live


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