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

How to correctly use travel_to in rspec test

Searched a lot of examples but still can't get this to workSeems pretty straightforward, I need to create a record, and then travel an hour in time ahead to make sure it has expired.Records are being...

View Article


$redis global variable with ruby on rails

I am using redis as a read cache. I have created an initializerconfig/initializer/redis.rb$redis = Redis.new(:host => ENV["REDIS_HOST"], :port => ENV["REDIS_PORT"])I am using this global in my...

View Article


Can't connect to clustered Azure Redis Cache with redis-rb gem and public access

We've provisioned an Azure Redis Cache server using the Premium tier. The server is clustered, with 2 shards, and the server is configured to allow public access over the public internet through a...

View Article

Bitnami Redis Sentinel & Sidekiq on Kubernetes

So right now we are trying to get a Bitnami Redis Sentinel cluster working, together with our Rails app + Sidekiq.We tried different things, but it's not really clear to us, how we should specify the...

View Article

Image may be NSFW.
Clik here to view.

Redis raises "NOAUTH Authentication required" error but there is no password...

I got error NOAUTH Authentication required when I connect to Redis server via command: redis-cli and run ping to check if Redis is working.I found answer for NOAUTH Authentication required error which...

View Article


Better way to rspec test SideKiq GUI

My sidekiq gui needs to authenticate a user for admin rights before allowing access.Is there a way to password protect and test the sidekiq gui controller directly? Instead of a feature test and...

View Article

How to push Celery tasks with Ruby

In our app we have a Rails app that makes an API call to a Flask API. The API then schedules a task, and we are using Redis as the queue.@app.route("/api/article", methods=["POST"])def api_article():...

View Article

Rails set(wait: 2.minutes) method for active job does not works

Creating an background job with the resque_scheduler gem on Redis server. class Estamps::OrderAssignment < ActiveRecord::Base after_save :enqueue_check_status def enqueue_check_status...

View Article


Redis-rb - Redis::CommandError: ERR unknown command 'exists?'

Seeing some odd behavior that I can't quite explain when using Resque with Redis for async jobs. When a job fails, the method report_failed_job throws an exception stating that the command "exists?"...

View Article


Image may be NSFW.
Clik here to view.

Pipelining commands on a Redis instance is deprecated and will be removed in...

I am using redis version 6.0 and gem 'sidekiq', '>= 6.4.1'gem 'sidekiq-cron', '~> 1.2' for job scheduling in rails. I am using corn job to process email daily. [. My ruby version is 2.7, rails...

View Article

Keda not scaling more than 1 Pod

I recently deployed keda-2.0.0.yaml to scale my sidekiq workers based on its queue.Thay my setup:apiVersion: keda.sh/v1alpha1kind: TriggerAuthenticationmetadata: name: redis-auth namespace: xxxxspec:...

View Article

Image may be NSFW.
Clik here to view.

How to increase throughput of Sidekiq/Redis on Ubuntu

I have something going on with sidekiq and i'm not sure how to solve it.My api is monitoring folders on syncplicity (its similar to sharefile), looking for new folders that are being created. It then...

View Article

How to implement a Redis Store for Money/Open-Exchange-Rate-Bank Ruby on Rails

I spent days searching the whole internet and couldn't find any implementation. I, therefore, implemented one and will like to share.

View Article


Using Redis as the cache store in AWS ElastiCache with a Rails 5.2 app

Im using Redis in AWS ElastiCache as the cache store for our Rails 5.2 app. I have the following two questions:We are using SSL in AWS ElastiCache and the redis-rb gem...

View Article

mock_redis or fakeredis for stubbing redis

I am working on application that has resque and redis. I am using resque_spec to stub resque in request specs and my college though that resque_spec will stub redis but it doesn't. I tried mock_redis...

View Article


After upgrading from free Heroku Redis plan to the first paid tier, our app...

We are a not for profit social media community. We upgraded from the free Heroku Redis plan to the lowest tier paid Heroku Redis plan. Instead of improving performance, the site crashed. And it's still...

View Article

Calculating cumulative value in a performant and reliable way

Tech stack: rails, sidekiq, postgresql, redisFor each tenant application, we want to calculate the fee of the orders.Every week, starting by monday, is available past week's sum. We charge apps the...

View Article


How can I ensure Sidekiq background jobs run against the same database they...

I have been implementing horizontal database sharding in Rails 6.1 using the new native multiple database connection switching. This has worked great in general, but I am trying to find the best way...

View Article

Heroku Redis silently failing, but ActiveJob "Enqueued"

I have two apps setup identically on Heroku with Redis and Resque, except on my production environment I have a paid database provisioned, and on my staging environment I have all the free defaults....

View Article

Cant run migration on rails app because of redis

I am trying to download a local version of Discourse, following the directions seen here:https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-macos-for-development/15772.However, when I...

View Article
Browsing all 873 articles
Browse latest View live


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