You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
I want to subscribe to redis, but it seems that the blocking redis subscribe blocks the whole actor. Thus, I tried celluloid-redis, but it seems I dont get it working. The following actor blocks inside subscribe and does not handle TerminationRequests within its Mailbox.
@tarcieri thank you very much. What would you say is the best way to have an actor that subscribes to redis pubsub. Right now, I start a custom Thread that subscribes to redis - which is blocking the thread. e.g.
When I kill the thread at the end, redis server still has an open connection - thus @redis is not being garbage collected correctly, I guess. When I call @redis.close I receive once again the on.psubscribe hook inside the thread, thus I guess the redis client tries to resubscribe to the server. The only chance to make a correct unsubscribe is to listen to a side channel (redis-observer-cmd) and publish an please-exit event that is then handled within the thread to unsubscribe as described in the redis docs - because the thread synchronizes/locks the redis client within the psubscribe.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to subscribe to redis, but it seems that the blocking redis subscribe blocks the whole actor. Thus, I tried
celluloid-redis
, but it seems I dont get it working. The following actor blocks insidesubscribe
and does not handleTerminationRequest
s within its Mailbox.The text was updated successfully, but these errors were encountered: