Redis connection timeout error when running sidekiq in elastic beanstalk
I'm trying to set up sidekiq to connect to redis elasticache (in-transit encryption enabled) from my AWS elastic beanstalk (Amazon Linux 2) instance. I've followed links such as this, but am getting a...
View ArticleIn production Sidekiq add job to history, but doesn't execute it (Sidekiq +...
My app have an import function that'll execute a Sidekiq Worker and import a bunch of CSV rows, saving them to my database. This works fine when I execute Sidekiq in my local machine, but when I deploy...
View ArticleResque standalone error Failed to start worker : # rake aborted!...
After installing the standalone Resque as per the link https://github.com/dcestari/resque-standalone-sample on a different server and pointing it to the Redis. When I run the command to start a worker...
View ArticleDevise without User table, but Redis instead
I have been looking around for a while now, but can't find a solution that fits my needs or an example that can help me on my way...TL;DRHow can I make use of Devise+Redis without needing a User table...
View ArticleCron parameter in not working in sidekiq rails
I have been implemented sidekiq-cron in my rails application. I want to run scheduled task using this gem.Here is yml file config/schedule.yml :message_worker: class: MessageWorker queue: default cron:...
View ArticleUsing Redis with Rails on Elastic Beanstalk
I am trying to launch a rails API on AWS. I have created an Elastic Beanstalk app, created a PostgreSQL RDS, and setup CodePipeline, but when I try to deploy I get an error that says...
View ArticleProblems on Ruby, gem and redis installation on MacOS
I believed that I successfully installed Ruby and RedisDump, however, when I run redis-dump or redis-load, terminal just told me "command not found". I don't know how to solve this problem.The point is...
View ArticleRoR Redis subscription rspec stub
I'm working on finding a stub for: @redis.subscribe(key) do |on| on.message do |channel, message| handle_message(message) end endHowever I am unsure what type of object on is? How can we iterate on two...
View ArticleHow to kill / remove "busy" Sidekiq jobs?
Unfortunately, I cannot explain how they arrived in this state, but I have a couple jobs stuck in the "busy" state, and I don't know how to resolve this situation:I tried redis-cli flushall to no...
View ArticleStoring anonymous users' favorites on Redis
I am new to Redis and started playing with it.I have a rails app where unauthenticated users can put newspaper articles as favorites, so they could read them later. What I have been doing until now is...
View ArticleDelete Sidekiq jobs with a particular argument?
Say that at some point I enqueue a job that looks like this:HardWorker.perform(command_id, user_id)Is there any way I can remove all the jobs (from the Redis queue) which have a particular command_id...
View ArticleHow to enable TLS for Redis 6 on Sidekiq?
ProblemOn my Ruby on Rails app, I keep getting the error below for the Heroku Redis Premium 0 add-on:OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (self...
View ArticleIssue dockerizing a ruby on rails project
I'm trying to dockerize a ruby project with a separate docker container for all services(web, Redis, and resque) when I initiated with code changes pointing to Redis and resque it is working as...
View ArticleSidekiq UI : Internal Server Error production
I am trying to run Sidekiq UI in production mode, though the workers are running fine but sometimes they crash and hence I wanted to look at the UI to either restart them or see whats the issue. This...
View ArticleRails 6 ActionCable/Redis production configuration
I'm currently integrating Stimulus Reflex and Cable Ready in my application and want to deploy it to my production server. The guides on how to deploy ActionCable to production seem very outdated,...
View ArticleHow to prioritize queues using Resque and Redis
My application has multiple queues and I'm trying to prioritize specific queues.resque-pool.ymldevelopment:"high_priority, med_priority, low_priority": 1According to the resque-pool documentation...
View ArticleTesting redis key expiration
I was wondering if anyone has a clever way of testing behavior after a redis key expires. I am essentially building a small redis backed cache for my application and would like to test what happens...
View ArticleRails store some attributes in redis instead of relational db
I have the following model:class Movie < ActiveRecord::Base #Has rating, duration, year as database fields #Want to store content_rating in redis instead of databaseendI update the model like this:...
View ArticleHerkou Redis - certificate verify failed (self signed certificate in...
I have been using heroku redis for a while now on one of my side projects. I currently use it for 3 thingsIt serves as a place for me to store firebase certificatesIt is used for caching data on the...
View ArticleHow to configure ActionCable to work with external frontend app
I have two applications (one rails app and one vue app) that need to communicate through ActionCable. This works very well on development, however, it does not in production. Both apps are deployed on...
View Article