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

Action Cable in Sidekiq Worker production

$
0
0

Is it possible to broadcast using ActionCable from a background job using sidekiq? On development this works fine. In production my channels do not receive the broadcast. When I use Worker.new.perform(data), my channel receives the broadcast but not when I use Worker.perform_at or Worker.perform_async.

I think Worker.new.perform(data) works because it is called synchronously, but background jobs which have to be executed on the sidekiq worker do not because they are not executed by the rails main thread.

Why does it work in development and not in production?


Viewing all articles
Browse latest Browse all 873

Trending Articles



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