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

Rails 6 with ActionCable | Push notifications working on desktop chrome, not...

I'm adding push notification functionality to my rails 6 application.I'm using ActionCable with async adapter on development and redis on production to successfully send desktop notifications when a...

View Article


Chat app using ActionCable and Elasticache on Ruby on Rails

First of all, Thank you for paying attention to my question.And sorry for my broken English as I am not a native English speaker.Please let me know if you ever need more informations or codes.What I am...

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

Need a way to temporarily store bulk user input to later parse, validate and...

I need to sync user's phone contacts to my app with a rails API backend. The frontend sends the dump of all contacts and the backend needs to parse, validate and create ActiveRecords in an async job....

View Article

'failed: Error during WebSocket handshake: Unexpected response code: 503'...

I'm trying to deploy chatapp on heroku but once I deploy it, ActionCable doesn't work though it works on localhost. I think because redis doesn't connect well on heroku. Could anyone please...

View Article


image_tag returns something different if called from within redis job

Rails 6 app with ActiveStorage has a application helper that returns the profile image of a user. module ApplicationHelper def profile_picture_with_class user, css_class, shape, width = 100 if (shape...

View Article

Sidekiq worker running for thousands of seconds even though there is a timeout

I have a sidekiq worker that shouldn't take more than 30 seconds, but after a few days I'll find that the entire worker queue stops executing because all of the workers are locked up.Here is my...

View Article

image_path returns bad url if called from within renderer within redis job

Rails 6 app with ActiveStorage has a application helper that returns the profile image of a user. module ApplicationHelper def profile_picture_with_class user, css_class, shape, width = 100 if (shape...

View Article


Redis Subscriber blocks thread/process?

I'm building a new API endpoint that uses Redis PUB/SUB to do a long polling; around 30seconds, however, I just realized that Redis.subscribe_with_timeout is blocking my thread. Initially I only create...

View Article


How can I set the expire time in Redis' ruby client when using mapped_mset?

I am trying to use redis.mapped_mset({ "f1" => "v1", "f2" => "v2" })to set multiple keys into Redis and I can not set expire time at the same time.The only way to set expire time to to use...

View Article

Using Redis in Heroku for a React and Rails API

I have a Rails API deployed onto heroku, which serves to a React.js Static page. There both deployed on heroku, and they comunicate through an API link. My struggle is comming when using Redis and...

View Article

How to fix this error in 'to_ary' during the test run? [closed]

Redis::CommandError: TestRun_1 | ERR unknown command 'to_ary'TestRun_1 | # /usr/local/bundle/gems/fakeredis-0.6.0/lib/fakeredis/command_executor.rb:12:in `write'TestRun_1 | #...

View Article

Why does Resque show "0 out of 0 Workers Working" while a worker is running?...

I'm trying to test out my Ruby on Rails app. I have redis running, I have a rails server setup and I started a Resque worker in the terminal via the command rake resque:work QUEUE=*, which responds...

View Article


Redis Server Failure when server starts

When I start redis on OSX, it exits because it says it can't handle RDB format version 7. Here's the output:Server started, Redis version 3.0.7Can't handle RDB format version 7Fatal error loading the...

View Article

how to build a redis service with ruby worker? [closed]

how to build a Redis service with a ruby worker?in other words how to execute a ruby code using Redis service?any suggestion or tutorial can help me to solve this issue

View Article


what better of performance when need check number of posts every hours and...

I work with Application i need check number of posts every hours in db .I use query to return number of post every hours in store it to db or Redis. what's best way to do that use Redis or db . this...

View Article

How to use retry in sidekiq?

SIDEKIQ RETRY WOULD NOT WORK – REASON is Handled ExceptionWorkername TestWorker.perform_async(*test)WorkerClassname class TestWorker include Sidekiq::Worker sidekiq_options queue: :test_q, retry: 3,...

View Article


Ruby & Redis / Skidekiq URI::InvalidURIError: the scheme redis does not...

on my docker server I've got error on sidekiq/redis URL URL sepcification:Sidekiq.configure_client do |config| config.redis = { url: "redis://bsc_redis:6379", size: 1 } endI getURI::InvalidURIError:...

View Article

Rails cache not works - redis automatically detects database change?

I'm using graphql for my rails api. And use redis for cache store.In a graphql query, I'm using cache to optimize performance:graphql/types/query_type.rbfield :labels, [Types::LabelType], null: false...

View Article

Rails low level caching is not working for active records

I'm using graphql for my rails api. And use redis for cache store.In a graphql query, I'm using cache to optimize performance:graphql/types/query_type.rbfield :labels, [Types::LabelType], null: false...

View Article
Browsing all 873 articles
Browse latest View live


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